8000 fix: add support for prefers-color-scheme CSS query by trop[bot] · Pull Request #19250 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: add support for prefers-color-scheme CSS query #19250

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

Conversation

trop[bot]
Copy link
Contributor
@trop trop bot commented Jul 15, 2019

Backport of #19228

See that PR for details.

Notes: The prefers-color-scheme CSS media query now works correctly

The wiring to update prefs when you toggle between dark mode and light mode exists in the content layer but the actual value setting is done in either //chrome or in shell.  We need to set the preferred_color_scheme pref value in order for the CSS query to work correctly.  The DarkModeObserver in content will automatically regenerate prefs when dark mode is toggled.

Fixes #15540
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jul 15, 2019
@trop trop bot added 6-0-x backport This is a backport PR labels Jul 15, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jul 15, 2019
@codebytere codebytere merged commit bb0f4fd into 6-0-x Jul 15, 2019
@release-clerk
Copy link
release-clerk bot commented Jul 15, 2019

Release Notes Persisted

The prefers-color-scheme CSS media query now works correctly.

@codebytere codebytere deleted the trop/6-0-x-bp-fix-add-support-for-prefers-color-scheme-css-query-1563178957987 branch July 15, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6-0-x backport This is a backport PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0