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

Add color_scheme and/or content_color_scheme properties #5

Open
Zorziel opened this issue Jan 17, 2023 · 0 comments
Open

Add color_scheme and/or content_color_scheme properties #5

Zorziel opened this issue Jan 17, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request feedback

Comments

@Zorziel
Copy link
Owner

Zorziel commented Jan 17, 2023

Per https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme#properties, we can set a color_scheme or content_color_scheme property to force the setting of dark mode for the panels and/or content from sites that support it.

Here's the description for color_scheme:

Optional

Determines which color scheme is applied to the chrome (for example, context menus) and content (for example, built-in pages and the preferred color scheme for web pages). Options include:

"auto" – a light or dark scheme based automatically on the theme.
"light" – a light scheme.
"dark" – a dark scheme.
"system" – uses the system scheme.

If not specified, defaults to "auto".

And for content_color_scheme:

Optional

Determines which color scheme is applied to the content (for example, built-in pages and preferred color scheme for web pages). Overrides color_scheme. Options include:

"auto" – a light or dark scheme based automatically on the theme.
"light" – a light scheme.
"dark" – a dark scheme.
"system" – the system scheme.

If not specified, defaults to "auto".

The default is "auto" for both, which seems to have been based on the tab_background_text color per #1 . Since I intended for this to be a dark theme, I propose setting it to dark or at least system.

@Zorziel Zorziel added the enhancement New feature or request label Jan 17, 2023
@Zorziel Zorziel self-assigned this Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feedback
Projects
None yet
Development

No branches or pull requests

1 participant