This commit is contained in:
myu 2024-05-01 18:38:43 +05:45 committed by GitHub
commit 7d4893999d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -215,6 +215,8 @@ in {
{file}`$XDG_CONFIG_HOME/gtk-4.0/gtk.css`.
'';
};
enableTheme = mkEnableOption "Add gtkk theme to user CSS";
};
};
};
@ -235,8 +237,8 @@ in {
gtk-cursor-theme-size = cfg.cursorTheme.size;
};
gtk4Css =
lib.optionalString (cfg.theme != null && cfg.theme.package != null) ''
gtk4Css = lib.optionalString
(cfg4.enableTheme && cfg.theme != null && cfg.theme.package != null) ''
/**
* GTK 4 reads the theme configured by gtk-theme-name, but ignores it.
* It does however respect user CSS, so import the theme from here.