Have a system wide dark mode preference API
elementary OS already has that in Granite:
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)