From c58b5489d805848b2f73f00ae96e41eca0529afa Mon Sep 17 00:00:00 2001 From: unexplrd Date: Thu, 5 Jun 2025 12:30:51 +0300 Subject: [PATCH] desktop/gnome: better theming Signed-off-by: unexplrd --- modules/home/desktop/gnome/default.nix | 27 +++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/modules/home/desktop/gnome/default.nix b/modules/home/desktop/gnome/default.nix index bd078ad..a375fd7 100644 --- a/modules/home/desktop/gnome/default.nix +++ b/modules/home/desktop/gnome/default.nix @@ -1,4 +1,5 @@ { + osConfig, config, pkgs, lib, @@ -40,6 +41,30 @@ in { {package = pkgs.gnomeExtensions.pano;} {package = pkgs.gnomeExtensions.window-is-ready-remover;} ]; + gtk = { + enable = true; + iconTheme = let + name = + if (lib.strings.hasPrefix "gruvbox" osConfig.module.stylix.theme) + then "Gruvbox-Plus-Dark" + else if config.stylix.polarity == "dark" + then "Papirus-Dark" + else "Papirus-Light"; + package = + if (lib.strings.hasPrefix "gruvbox" osConfig.module.stylix.theme) + then pkgs.gruvbox-plus-icons + else if (lib.strings.hasPrefix "rose-pine" osConfig.module.stylix.theme) + then pkgs.papirus-icon-theme.override {color = "indigo";} + else if (lib.strings.hasPrefix "nord" osConfig.module.stylix.theme) + then pkgs.papirus-icon-theme.override {color = "nordic";} + else pkgs.papirus-icon-theme; + in {inherit name package;}; + }; + qt = { + enable = true; + platformTheme.name = lib.mkForce "adwaita"; + }; + dconf.settings = with lib.hm.gvariant; { "org/gnome/desktop/a11y/applications" = { screen-reader-enabled = false; @@ -59,7 +84,7 @@ in { }; "org/gnome/desktop/interface" = { - accent-color = "slate"; + # accent-color = "slate"; clock-show-seconds = true; color-scheme = "prefer-dark"; enable-animations = true;