mirror of
https://github.com/danth/stylix
synced 2024-11-22 12:13:08 +00:00
Set correct Gnome settings for dark mode (#16)
This commit is contained in:
parent
5b9c63851a
commit
081ce971ed
1 changed files with 20 additions and 7 deletions
|
@ -5,11 +5,24 @@
|
|||
config.lib.stylix.mkEnableTarget "GNOME" true;
|
||||
|
||||
config.home-manager.sharedModules =
|
||||
lib.mkIf config.stylix.targets.gnome.enable [{
|
||||
dconf.settings."org/gnome/desktop/background" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file://${config.stylix.image}";
|
||||
};
|
||||
}];
|
||||
if config.stylix.polarity == "dark"
|
||||
then
|
||||
lib.mkIf config.stylix.targets.gnome.enable [{
|
||||
dconf.settings."org/gnome/desktop/background" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri-dark = "file://${config.stylix.image}";
|
||||
};
|
||||
dconf.settings."org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
};
|
||||
}]
|
||||
else
|
||||
lib.mkIf config.stylix.targets.gnome.enable [{
|
||||
dconf.settings."org/gnome/desktop/background" = {
|
||||
color-shading-type = "solid";
|
||||
picture-options = "zoom";
|
||||
picture-uri = "file://${config.stylix.image}";
|
||||
};
|
||||
}];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue