danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.11k stars 139 forks source link

firefox: apply dark mode depending on theme polarity #253

Open trueNAHO opened 7 months ago

trueNAHO commented 7 months ago

IIRC, Firefox currently does not apply dark mode depending on theme polarity.

Maybe dark mode can be applied via something like programs.firefox.profiles or Firefox extensions.

Related: https://github.com/danth/stylix/pull/175

no-mood commented 2 months ago

I'm using Hyprland with GTK apps, and previously (before migrating to Stylix), I was setting the polarity manually. Based on the source code, I noticed that dark mode is applied only if GNOME is enabled, along with other tweaks useful to GTK users (and not just GNOME). That's why, in my system, I added stylix.targets.gnome.enable = true; even though GNOME is not installed.

I still don't understand why the config doesn't live-switch to light/dark mode, while previously it did.