Have a system wide dark mode preference API
elementary OS already has that in Granite:
- https://github.com/elementary/granite/pull/319
- https://github.com/elementary/settings-daemon/issues/16
- https://blog.elementary.io/the-need-for-a-freedesktop-dark-style-preference/
- https://www.youtube.com/watch?v=gi_3b81eBUE
One thing we couldn't figure out is where to store it, so that it doesn't require Flatpak apps to open holes in the sandbox. However:
Seems we can just store the mode in gsettings in that schema.
API on other platforms: !224 (comment 1258529)
Edited by Alice Mikhaylenko