style: working gtk colors
Still have to set the stuff using dconf tho L
This commit is contained in:
parent
824e30fc7c
commit
3dce32f616
2 changed files with 102 additions and 5 deletions
|
@ -6,11 +6,11 @@
|
|||
}: let
|
||||
inherit (builtins) toString isBool;
|
||||
inherit (lib.generators) toINI;
|
||||
inherit (lib.modules) mkMerge mkIf;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) str package;
|
||||
inherit (lib.strings) escape;
|
||||
inherit (lib.trivial) boolToString;
|
||||
inherit (lib.types) str package;
|
||||
|
||||
cfg = config.modules.theming.gtk;
|
||||
|
||||
|
@ -75,23 +75,28 @@ in {
|
|||
rose-pine-cursor
|
||||
gruvbox-gtk-theme
|
||||
papirus-icon-theme
|
||||
colloid-icon-theme
|
||||
;
|
||||
};
|
||||
variables = {
|
||||
GTK_THEME = cfg.theme.name;
|
||||
XCURSOR_THEME = "BreezeX-RosePine-Linux";
|
||||
XCURSOR_SIZE = toString cursorSize;
|
||||
XCURSOR_SIZE = cursorSize;
|
||||
|
||||
HYPRCURSOR_THEME = "BreezeX-RosePine-Linux";
|
||||
HYPRCURSOR_SIZE = toString cursorSize;
|
||||
HYPRCURSOR_SIZE = cursorSize;
|
||||
};
|
||||
etc = {
|
||||
etc = let
|
||||
css = import ./gtk-colors.nix {inherit (config.modules.style.colorScheme) colors;};
|
||||
in {
|
||||
"xdg/gtk-4.0/settings.ini".text = toGtk3Ini {
|
||||
Settings = gtkIni;
|
||||
};
|
||||
"xdg/gtk-3.0/settings.ini".text = toGtk3Ini {
|
||||
Settings = gtkIni;
|
||||
};
|
||||
"xdg/gtk-4.0/gtk.css".text = css;
|
||||
"xdg/gtk-3.0/gtk.css".text = css;
|
||||
|
||||
"xdg/gtk-2.0/gtkrc".text = ''
|
||||
gtk-cursor-theme-name = BreezeX-RosePine-Linux
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue