Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use system color scheme in themes #214

Open
RangerMauve opened this issue Dec 13, 2022 · 1 comment
Open

Use system color scheme in themes #214

RangerMauve opened this issue Dec 13, 2022 · 1 comment
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

Comments

@RangerMauve
Copy link
Member

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.

@RangerMauve RangerMauve added enhancement New feature or request windows Primarily happens on windows Mac OS Primarily happens on Mac OS Linux Primarily happens on Linux electron Related to electron, might require fixes from upstream labels Dec 13, 2022
@RangerMauve
Copy link
Member Author

I think we'll also want to take window transparency into account to support window managers with that fancy blur effect: https://www.electronjs.org/docs/latest/tutorial/window-customization#create-transparent-windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant