gtk: warn about non-functional gtk.gtk{3,4}.extraCss options (#1153)

Link: https://github.com/danth/stylix/pull/1153

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
awwpotato 2025-04-22 07:28:44 -07:00 committed by GitHub
parent a7a0682b3e
commit 375b1de242
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,6 +41,10 @@ in
config = lib.mkIf cfg.enable (
lib.mkMerge [
{
warnings =
lib.optional (config.gtk.gtk3.extraCss == "" && config.gtk.gtk4.extraCss == "")
"stylix: `gtk.gtk3.extraCss` and `gtk.gtk4.extraCss` have no effect. Use `stylix.targets.gtk.extraCss` instead.";
# programs.dconf.enable = true; required in system config
gtk = {
enable = true;