modules/theme: update icon theme
This commit is contained in:
parent
3017dfc76c
commit
1fd5815f18
2 changed files with 16 additions and 20 deletions
|
@ -268,6 +268,14 @@ in {
|
|||
base16-colors = scheme.palette;
|
||||
};
|
||||
};
|
||||
|
||||
gtk = rec {
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = scheme.variant == "dark";
|
||||
};
|
||||
gtk4.extraConfig = gtk3.extraConfig;
|
||||
};
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-${scheme.variant}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
|
@ -33,13 +32,13 @@ in {
|
|||
name = mkOption {
|
||||
type = str;
|
||||
description = "The name for the icon theme that will be used for GTK programs";
|
||||
default = "Papirus-Dark";
|
||||
default = "rose-pine";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = package;
|
||||
description = "The GTK icon theme to be used";
|
||||
default = pkgs.papirus-icon-theme;
|
||||
default = pkgs.rose-pine-icon-theme;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -66,32 +65,21 @@ in {
|
|||
iconTheme = {
|
||||
inherit (cfg.iconTheme) name package;
|
||||
};
|
||||
cursorTheme = {
|
||||
cursorTheme = mkIf config.theme.enable {
|
||||
inherit (config.theme.cursorTheme) name package;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.nezia = mkIf config.theme.enable (let
|
||||
scheme = inputs.basix.schemeData.base16.${config.theme.schemeName};
|
||||
in {
|
||||
gtk = rec {
|
||||
home-manager.users.nezia = {
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
iconTheme = {
|
||||
inherit (config.theme.gtk.iconTheme) name package;
|
||||
inherit (cfg.iconTheme) name package;
|
||||
};
|
||||
|
||||
theme = {
|
||||
inherit (config.theme.gtk.theme) name package;
|
||||
inherit (cfg.theme) name package;
|
||||
};
|
||||
|
||||
gtk3.extraConfig = {
|
||||
gtk-application-prefer-dark-theme = scheme.variant == "dark";
|
||||
};
|
||||
gtk4.extraConfig = gtk3.extraConfig;
|
||||
};
|
||||
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-${scheme.variant}";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue