Use system color scheme in themes #214
Labels
electron
Related to electron, might require fixes from upstream
enhancement
New feature or request
Linux
Primarily happens on Linux
Mac OS
Primarily happens on Mac OS
windows
Primarily happens on windows
It'd be useful if we could pull the system color scheme into Agregore's color scheme.
Then we could have a flag to enable this functionality if you want apps to match the system somewhat. (when importing
agregore://theme/style.css
)Electron has an API for this in MacOS and Windows https://www.electronjs.org/docs/latest/api/system-preferences#systempreferencesgetcolorcolor-windows-macos
However this will need to be expanded with some way of getting the system theme in Linux from GNOME and from Plasma Mobile. (not sure if we should somehow get X themes in here too?)
This will be useful for Agregore Mobile as well if we can get the system color scheme from the Android preferences.
The goal here is to make it easier to style p2p web apps to be cohesive with the rest of the host OS.
The text was updated successfully, but these errors were encountered: