mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
gtk: Add gtk4.extraCss option (#4133)
This commit is contained in:
parent
50cb4d8a1e
commit
1fefd7bb8d
1 changed files with 12 additions and 0 deletions
|
@ -204,6 +204,15 @@ in {
|
|||
<filename>$XDG_CONFIG_HOME/gtk-4.0/settings.ini</filename>.
|
||||
'';
|
||||
};
|
||||
|
||||
extraCss = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = ''
|
||||
Extra configuration lines to add verbatim to
|
||||
<filename>$XDG_CONFIG_HOME/gtk-4.0/gtk.css</filename>.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -268,6 +277,9 @@ in {
|
|||
xdg.configFile."gtk-4.0/settings.ini".text =
|
||||
toGtk3Ini { Settings = gtkIni // cfg4.extraConfig; };
|
||||
|
||||
xdg.configFile."gtk-4.0/gtk.css" =
|
||||
mkIf (cfg4.extraCss != "") { text = cfg4.extraCss; };
|
||||
|
||||
dconf.settings."org/gnome/desktop/interface" = dconfIni;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue