Make non-curated applications follow system theme #495
Replies: 2 comments 2 replies
-
Originally posted by @cassidyjames in elementary/stylesheet#1008 (comment) |
Beta Was this translation helpful? Give feedback.
-
If you don't want to include Granite in your app, the simplest way is you can listen to the gsettings key at The gsettings key is mirrored by elementary settings daemon from the pantheon accountsservice extension. So you could also listen to accountsservice over dbus, which is what Granite currently does: https://github.com/elementary/granite/blob/master/lib/Widgets/Settings.vala Since there is still some debate among the various platforms about how exactly to expose this setting, it may change in the future. The primary advantage of using Granite here is that we will keep Granite up to date with these changes so that your app will continue to function as intended automatically. |
Beta Was this translation helpful? Give feedback.
-
Having the option to support a system-wide dark theme in Granite is a step in the right direction, but that prevents non Granite applications to follow the system theme :(. Unfortunately, this means that my and others' applications (although supporting a dark mode), won't follow the system theme.
Example of my app working in dark mode
Example of my app working in dark mode
I am in favor of a dbus call to make apps follow the system theme, but while that isn't a freedesktop specification, I'd like users to have a good experience with my app on elementaryOS.
Here are my solutions/questions:
I would like to know your opinions!
Gustavo
Beta Was this translation helpful? Give feedback.
All reactions