From b4e3de019d3d324e14de69c629429eea8a85184d Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 6 Oct 2023 11:15:54 +0200 Subject: [PATCH] feat: kvantum for qt --- modules/optional/xserver.nix | 5 +- .../graphical/kvantum/KvLibadwaita.kvconfig | 568 ++ .../common/graphical/kvantum/KvLibadwaita.svg | 6814 +++++++++++++++++ users/common/graphical/sway3.nix | 2 +- users/common/graphical/themes.nix | 6 +- users/common/programs/thunderbird.nix | 1 + 6 files changed, 7393 insertions(+), 3 deletions(-) create mode 100644 users/common/graphical/kvantum/KvLibadwaita.kvconfig create mode 100644 users/common/graphical/kvantum/KvLibadwaita.svg diff --git a/modules/optional/xserver.nix b/modules/optional/xserver.nix index 154ab91..0c58fa9 100644 --- a/modules/optional/xserver.nix +++ b/modules/optional/xserver.nix @@ -13,7 +13,10 @@ lib.optionalAttrs (!minimal) { videoDrivers = ["modesetting"]; libinput = { enable = true; - mouse.accelProfile = "flat"; + mouse = { + accelSpeed = "0.5"; + accelProfile = "flat"; + }; touchpad = { accelProfile = "flat"; accelSpeed = "1"; diff --git a/users/common/graphical/kvantum/KvLibadwaita.kvconfig b/users/common/graphical/kvantum/KvLibadwaita.kvconfig new file mode 100644 index 0000000..2b950e7 --- /dev/null +++ b/users/common/graphical/kvantum/KvLibadwaita.kvconfig @@ -0,0 +1,568 @@ +[%General] +author=Vince Liuice, based on KvAdapta by Tsu Jan +comment=An uncomplicated theme inspired by the Materia GTK theme +x11drag=menubar_and_primary_toolbar +alt_mnemonic=true +left_tabs=false +attach_active_tab=false +mirror_doc_tabs=false +group_toolbar_buttons=true +toolbar_item_spacing=0 +toolbar_interior_spacing=2 +spread_progressbar=true +composite=true +menu_shadow_depth=16 +spread_menuitems=true +tooltip_shadow_depth=7 +splitter_width=1 +scroll_width=9 +scroll_arrows=false +scroll_min_extent=60 +slider_width=2 +slider_handle_width=23 +slider_handle_length=22 +tickless_slider_handle_size=22 +center_toolbar_handle=true +check_size=24 +textless_progressbar=false +progressbar_thickness=2 +menubar_mouse_tracking=true +toolbutton_style=1 +double_click=false +translucent_windows=false +blurring=false +popup_blurring=false +vertical_spin_indicators=false +spin_button_width=24 +fill_rubberband=false +merge_menubar_with_toolbar=true +small_icon_size=16 +large_icon_size=32 +button_icon_size=16 +toolbar_icon_size=16 +combo_as_lineedit=true +animate_states=true +button_contents_shift=false +combo_menu=true +hide_combo_checkboxes=true +combo_focus_rect=false +groupbox_top_label=true +inline_spin_indicators=true +joined_inactive_tabs=false +layout_spacing=6 +layout_margin=9 +scrollbar_in_view=true +transient_scrollbar=true +transient_groove=true +submenu_overlap=0 +tooltip_delay=0 +tree_branch_line=true +no_window_pattern=false +opaque=kaffeine,kmplayer,subtitlecomposer,kdenlive,vlc,smplayer,smplayer2,avidemux,avidemux2_qt4,avidemux3_qt4,avidemux3_qt5,kamoso,QtCreator,VirtualBox,trojita,dragon,digikam +reduce_window_opacity=0 +respect_DE=true +scrollable_menu=false +submenu_delay=150 +no_inactiveness=false +reduce_menu_opacity=0 +click_behavior=0 +contrast=1.00 +dialog_button_layout=0 +intensity=1.00 +saturation=1.00 +shadowless_popup=false +drag_from_buttons=false +menu_blur_radius=0 +tooltip_blur_radius=0 + +[GeneralColors] +window.color=#2c2c2c +base.color=#2c2c2c +alt.base.color=#2e2e2e +button.color=#4d4d4d +light.color=#535353 +mid.light.color=#474747 +dark.color=#282828 +mid.color=#323232 +highlight.color=#3584e4 +inactive.highlight.color=#3584e4 +text.color=#dfdfdf +window.text.color=#dfdfdf +button.text.color=#dfdfdf +disabled.text.color=#696969 +tooltip.text.color=#efefef +highlight.text.color=#ffffff +link.color=#0057AE +link.visited.color=#E040FB +progress.indicator.text.color=#dfdfdf + +[Hacks] +transparent_ktitle_label=true +transparent_dolphin_view=true +transparent_pcmanfm_sidepane=true +blur_translucent=false +transparent_menutitle=true +respect_darkness=true +kcapacitybar_as_progressbar=true +force_size_grip=true +iconless_pushbutton=true +iconless_menu=false +disabled_icon_opacity=100 +lxqtmainmenu_iconsize=16 +normal_default_pushbutton=true +single_top_toolbar=true +tint_on_mouseover=0 +transparent_pcmanfm_view=true +no_selection_tint=true +transparent_arrow_button=true +middle_click_scroll=false +opaque_colors=false +kinetic_scrolling=false +scroll_jump_workaround=true +centered_forms=false +noninteger_translucency=false +style_vertical_toolbars=false +blur_only_active_window=true + +[PanelButtonCommand] +frame=true +frame.element=button +frame.top=6 +frame.bottom=6 +frame.left=6 +frame.right=6 +interior=true +interior.element=button +indicator.size=8 +text.normal.color=#dfdfdf +text.focus.color=white +text.press.color=white +text.toggle.color=#ffffff +text.shadow=0 +text.margin=4 +text.iconspacing=4 +indicator.element=arrow +frame.expansion=0 + +[PanelButtonTool] +inherits=PanelButtonCommand +text.normal.color=#dfdfdf +text.focus.color=white +text.press.color=white +text.toggle.color=#ffffff +text.bold=false +indicator.element=arrow +indicator.size=0 +frame.expansion=0 + +[ToolbarButton] +frame=true +frame.element=tbutton +interior.element=tbutton +frame.top=16 +frame.bottom=16 +frame.left=16 +frame.right=16 +indicator.element=tarrow +text.normal.color=#dfdfdf +text.focus.color=white +text.press.color=white +text.toggle.color=white +text.bold=false +frame.expansion=32 + +[Dock] +inherits=PanelButtonCommand +interior.element=dock +frame.element=dock +frame.top=1 +frame.bottom=1 +frame.left=1 +frame.right=1 +text.normal.color=#dfdfdf + +[DockTitle] +inherits=PanelButtonCommand +frame=false +interior=false +text.normal.color=#dfdfdf +text.focus.color=white +text.bold=false + +[IndicatorSpinBox] +inherits=PanelButtonCommand +frame=true +interior=true +frame.top=2 +frame.bottom=2 +frame.left=2 +frame.right=2 +indicator.element=spin +indicator.size=8 +text.normal.color=#dfdfdf +text.margin.top=2 +text.margin.bottom=2 +text.margin.left=2 +text.margin.right=2 + +[RadioButton] +inherits=PanelButtonCommand +frame=false +interior.element=radio +text.normal.color=#dfdfdf +text.focus.color=white +min_width=+0.3font +min_height=+0.3font + +[CheckBox] +inherits=PanelButtonCommand +frame=false +interior.element=checkbox +text.normal.color=#dfdfdf +text.focus.color=white +min_width=+0.3font +min_height=+0.3font + +[Focus] +inherits=PanelButtonCommand +frame=true +frame.element=focus +frame.top=2 +frame.bottom=2 +frame.left=2 +frame.right=2 +frame.patternsize=14 + +[GenericFrame] +inherits=PanelButtonCommand +frame=true +interior=false +frame.element=common +interior.element=common +frame.top=1 +frame.bottom=1 +frame.left=1 +frame.right=1 + +[LineEdit] +inherits=PanelButtonCommand +frame.element=lineedit +interior.element=lineedit +frame.top=6 +frame.bottom=6 +frame.left=6 +frame.right=6 +text.margin.top=2 +text.margin.bottom=2 +text.margin.left=2 +text.margin.right=2 + +[ToolbarLineEdit] +frame.element=lineedit +interior.element=lineedit + +[DropDownButton] +inherits=PanelButtonCommand +indicator.element=arrow-down + +[IndicatorArrow] +indicator.element=arrow +indicator.size=8 + +[ToolboxTab] +inherits=PanelButtonCommand +text.normal.color=#dfdfdf +text.press.color=#dfdfdf +text.focus.color=white + +[Tab] +inherits=PanelButtonCommand +interior.element=tab +text.margin.left=8 +text.margin.right=8 +text.margin.top=0 +text.margin.bottom=0 +frame.element=tab +indicator.element=tab +indicator.size=22 +frame.top=8 +frame.bottom=8 +frame.left=8 +frame.right=8 +text.normal.color=#dfdfdf +text.focus.color=#dfdfdf +text.press.color=white +text.toggle.color=white +frame.expansion=0 +text.bold=false + +[TabFrame] +inherits=PanelButtonCommand +frame.element=tabframe +interior.element=tabframe +frame.top=24 +frame.bottom=24 +frame.left=24 +frame.right=24 + +[TreeExpander] +inherits=PanelButtonCommand +indicator.size=8 +indicator.element=tree + +[HeaderSection] +inherits=PanelButtonCommand +interior.element=header +frame.element=header +frame.top=0 +frame.bottom=1 +frame.left=1 +frame.right=1 +text.normal.color=#dfdfdf +text.focus.color=white +text.press.color=white +text.toggle.color=white +frame.expansion=0 + +[SizeGrip] +indicator.element=resize-grip + +[Toolbar] +inherits=PanelButtonCommand +indicator.element=toolbar +indicator.size=5 +text.margin=0 +interior.element=menubar +frame.element=menubar +text.normal.color=#dfdfdf +text.focus.color=white +text.press.color=#dfdfdf +text.toggle.color=white +frame.left=6 +frame.right=6 +frame.top=0 +frame.bottom=1 +frame.expansion=0 + +[Slider] +inherits=PanelButtonCommand +frame.element=slider +focusFrame=true +interior.element=slider +frame.top=3 +frame.bottom=3 +frame.left=3 +frame.right=3 + +[SliderCursor] +inherits=PanelButtonCommand +frame=false +interior.element=slidercursor + +[Progressbar] +inherits=PanelButtonCommand +frame.element=progress +interior.element=progress +text.margin=0 +text.normal.color=#dfdfdf +text.focus.color=#dfdfdf +text.press.color=#dfdfdf +text.toggle.color=#dfdfdf +text.bold=false +frame.expansion=8 + +[ProgressbarContents] +inherits=PanelButtonCommand +frame=true +frame.element=progress-pattern +interior.element=progress-pattern + +[ItemView] +inherits=PanelButtonCommand +text.margin=0 +frame.element=itemview +interior.element=itemview +frame.top=4 +frame.bottom=4 +frame.left=4 +frame.right=4 +text.margin.top=0 +text.margin.bottom=0 +text.margin.left=8 +text.margin.right=8 +text.normal.color=#dfdfdf +text.focus.color=#dfdfdf +text.press.color=#ffffff +text.toggle.color=#ffffff +min_width=+0.3font +min_height=+0.3font +frame.expansion=0 + +[Splitter] +interior.element=splitter +frame=false +indicator.size=0 + +[Scrollbar] +inherits=PanelButtonCommand +indicator.element=arrow +indicator.size=12 + +[ScrollbarSlider] +inherits=PanelButtonCommand +frame.element=scrollbarslider +interior=false +frame.left=5 +frame.right=5 +frame.top=5 +frame.bottom=5 +indicator.element=grip +indicator.size=12 + +[ScrollbarGroove] +inherits=PanelButtonCommand +interior=false +frame=false + +[Menu] +inherits=PanelButtonCommand +frame.top=8 +frame.bottom=8 +frame.left=8 +frame.right=8 +frame.element=menu +interior.element=menu +text.normal.color=#dedede +text.shadow=false +text.bold=false + +[MenuItem] +inherits=PanelButtonCommand +frame=true +frame.element=menuitem +interior.element=menuitem +indicator.element=menuitem +text.normal.color=#dedede +text.focus.color=#dedede +text.margin.top=0 +text.margin.bottom=0 +text.margin.left=6 +text.margin.right=6 +frame.top=4 +frame.bottom=4 +frame.left=12 +frame.right=12 +text.bold=false +frame.expansion=0 + +[MenuBar] +inherits=PanelButtonCommand +frame.element=menubar +interior.element=menubar +frame.bottom=0 +text.normal.color=#dfdfdf +text.focus.color=#ffffff +text.press.color=#ffffff +text.toggle.color=#ffffff +frame.expansion=0 +text.bold=false + +[MenuBarItem] +inherits=PanelButtonCommand +interior=true +interior.element=menubaritem +frame.element=menubaritem +frame.top=2 +frame.bottom=2 +frame.left=2 +frame.right=2 +text.margin.left=4 +text.margin.right=4 +text.margin.top=0 +text.margin.bottom=0 +text.normal.color=#dfdfdf +text.focus.color=#ffffff +text.press.color=#ffffff +text.toggle.color=#ffffff +text.bold=false +min_width=+0.3font +min_height=+0.3font +frame.expansion=0 + +[TitleBar] +inherits=PanelButtonCommand +frame=false +text.margin.top=2 +text.margin.bottom=2 +text.margin.left=2 +text.margin.right=2 +interior.element=titlebar +indicator.size=16 +indicator.element=mdi +text.normal.color=#787878 +text.focus.color=#dfdfdf +text.bold=false +text.italic=true +frame.expansion=0 + +[ComboBox] +inherits=PanelButtonCommand +frame.element=combo +interior.element=combo +frame.top=6 +frame.bottom=6 +frame.left=6 +frame.right=6 +text.margin.top=2 +text.margin.bottom=2 +text.margin.left=2 +text.margin.right=2 +text.focus.color=white +text.press.color=#dfdfdf +text.toggle.color=white + +[GroupBox] +inherits=GenericFrame +frame=false +text.shadow=0 +text.margin=0 +text.normal.color=#dfdfdf +text.focus.color=white +text.bold=false +frame.expansion=0 + +[TabBarFrame] +inherits=GenericFrame +frame=false +frame.element=tabBarFrame +interior=false +frame.top=0 +frame.bottom=0 +frame.left=0 +frame.right=0 + +[ToolTip] +inherits=GenericFrame +frame.top=6 +frame.bottom=6 +frame.left=6 +frame.right=6 +interior=true +text.shadow=0 +text.margin=6 +interior.element=tooltip +frame.element=tooltip +frame.expansion=6 + +[StatusBar] +inherits=GenericFrame +frame=false +interior=false + +[Window] +interior=true +interior.element=window +frame=true +frame.element=window +frame.bottom=10 +frame.top=10 diff --git a/users/common/graphical/kvantum/KvLibadwaita.svg b/users/common/graphical/kvantum/KvLibadwaita.svg new file mode 100644 index 0000000..e03d8f8 --- /dev/null +++ b/users/common/graphical/kvantum/KvLibadwaita.svg @@ -0,0 +1,6814 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/users/common/graphical/sway3.nix b/users/common/graphical/sway3.nix index 89d6510..93a499a 100644 --- a/users/common/graphical/sway3.nix +++ b/users/common/graphical/sway3.nix @@ -49,7 +49,7 @@ let {class = "^prismlauncher$";} ]; "1:F1" = [ - {class = "^Discord$";} + {class = "^discord$";} ]; "2:F2" = [ {class = "^Signal$";} diff --git a/users/common/graphical/themes.nix b/users/common/graphical/themes.nix index f04f47d..f67f159 100644 --- a/users/common/graphical/themes.nix +++ b/users/common/graphical/themes.nix @@ -63,6 +63,10 @@ qt = { enable = true; - platformTheme = "gtk"; + platformTheme = "qtct"; + style.name = "kvantum"; }; + + xdg.configFile."Kvantum/kvantum.kvconfig".text = "theme=KvLibadwaita"; + xdg.configFile."Kvantum/KvLibadwaita/".source = ./kvantum; } diff --git a/users/common/programs/thunderbird.nix b/users/common/programs/thunderbird.nix index 2a5bc76..e3a03c8 100644 --- a/users/common/programs/thunderbird.nix +++ b/users/common/programs/thunderbird.nix @@ -62,6 +62,7 @@ xdg.mimeApps.enable = true; xdg.mimeApps.defaultApplications = { "x-scheme-handler/mailto" = ["thunderbird.desktop"]; + "x-scheme-handler/mid" = ["thunderbird.desktop"]; "message/rfc822" = ["thunderbird.desktop"]; }; }