danth / stylix

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

[Feature request]: Support for toggling between Light and Dark polarity #447

Open TheColorman opened 1 week ago

TheColorman commented 1 week ago

I like synchronizing my system color to the sunset and sunrise, but that's not possible with Stylix unless I do a nixos rebuild. I'd love for Stylix to generate both a dark and a light polarity theme on rebuild, for the OS to then be able to switch between them using a program like baduhai/Koi or oskarsh/Yin-Yang (or even built in to Stylix itself?)

Manual/dynamic switching between light and dark themes is increasingly popular, so I think Stylix supporting it would make a lot of sense, though I'm not sure how much effort it would take to implement such a feature.

danth commented 1 week ago

This is difficult to implement since only a very small number of apps can switch based on a toggle (such as in GNOME), and only about half of apps have automatic reload if we were to change their config on a timer.

trueNAHO commented 1 week ago

https://github.com/danth/stylix/issues/63 could be extended in the future to change wallpapers with a certain color palette based on the time.