All my system configs and packages in one repo

presets/niri: fix qt styling

pluie.me c77694f3 205005fa

verified
+18 -19
-18
users/leah/appearance.nix
··· 25 25 }; 26 26 }; 27 27 28 - # programs.dconf.profiles.user.databases = [ 29 - # { 30 - # settings = { 31 - # "org/gnome/desktop/interface" = { 32 - # font-name = "DM Sans 13"; 33 - # gtk-theme = "Adwaita"; 34 - # icon-theme = "Adwaita"; 35 - # color-scheme = "prefer-dark"; 36 - # # Not exactly maroon, but close enough 37 - # accent-color = "pink"; 38 - # cursor-theme = "BreezeX-Dark"; 39 - # cursor-size = lib.gvariant.mkInt32 32; 40 - # }; 41 - # }; 42 - # } 43 - # ]; 44 - 45 28 hjem.users.leah = { 46 29 ctp = { 47 30 enable = true; ··· 52 35 53 36 packages = with pkgs; [ 54 37 breezex-cursor 55 - adw-gtk3 56 38 adwaita-icon-theme 57 39 ]; 58 40
+18 -1
users/leah/presets/niri/gui-toolkits.nix
··· 4 4 ... 5 5 }: 6 6 { 7 + # Make both GTK 3 and Qt apps follow GTK 4-like theming... sorta 7 8 hjem.users.leah.packages = with pkgs; [ 9 + adw-gtk3 8 10 qadwaitadecorations 9 11 qadwaitadecorations-qt6 10 12 ]; 11 13 12 14 qt.enable = true; 13 - environment.variables.QT_QPA_PLATFORMTHEME = "adwaita"; 15 + 16 + # TODO: Use the corresponding `qt.*` options when they become available 17 + environment.sessionVariables = { 18 + # Make Qt apps look like GTK 3 apps. 19 + # Ideally I want to make them look like GTK 4 + Adwaita apps instead, 20 + # but it's not really viable with `adwaita-qt` being discontinued 21 + QT_QPA_PLATFORMTHEME = "gtk3"; 22 + 23 + # At least we can have an Adwaita-style CSD 24 + QT_WAYLAND_DECORATION = "adwaita"; 25 + }; 14 26 15 27 programs.dconf.profiles.user.databases = [ 16 28 { ··· 18 30 "org/gnome/desktop/wm/preferences" = { 19 31 # Both minimize and maximize do nothing in niri 20 32 button-layout = "icon:close"; 33 + }; 34 + "org/gnome/desktop/interface" = { 35 + accent-color = "pink"; 36 + color-scheme = "prefer-dark"; 37 + font-name = "DM Sans 13"; 21 38 }; 22 39 }; 23 40 }