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
Theme: implement and adopt service for handling ColorSchemes (dark, light, hc) #105715
Comments
@aeschli please check #105716 for a first cut of support in the Things to do:
|
We now have a separate The browser uses the experimental force-colors to detect hc: https://drafts.csswg.org/css-color-adjust-1/#forced-colors-mode |
I suggest to either put this on test plan or verify. |
I'll put this on the test plan, there's enough to test |
The idea is to introduce central methods in
IHostService
to:Idea for
ColorScheme
is an enum of:DEFAULT
DARK
HIGHT_CONTRAST
Implementation depends on the runtime:
Electron
:nativeTheme
allows to figure out high contrast and dark scheme preferenceBrowser
: we can currently only detect preference for dark theme via a CSS checkThe text was updated successfully, but these errors were encountered: