Bug 195113 - Web Inspector: popover colors don't change when transitioning to/from dark mode
Summary: Web Inspector: popover colors don't change when transitioning to/from dark mode
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-02-27 11:35 PST by Devin Rousso
Modified: 2019-02-27 13:45 PST (History)
6 users (show)

See Also:


Attachments
Patch (2.11 KB, patch)
2019-02-27 11:50 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2019-02-27 11:35:03 PST
# STEPS TO REPRODUCE:
1. inspect any page
2. find some CSS color in the Styles sidebar of the Elements tab
3. click the color swatch
4. go to System Preferences > General and change the appearance to Dark
 => the popover still has a light background
Comment 1 Radar WebKit Bug Importer 2019-02-27 11:35:40 PST
<rdar://problem/48444188>
Comment 2 Devin Rousso 2019-02-27 11:50:37 PST
Created attachment 363111 [details]
Patch
Comment 3 WebKit Commit Bot 2019-02-27 12:13:21 PST
Comment on attachment 363111 [details]
Patch

Clearing flags on attachment: 363111

Committed r242144: <https://trac.webkit.org/changeset/242144>
Comment 4 WebKit Commit Bot 2019-02-27 12:13:22 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Matt Baker 2019-02-27 13:45:21 PST
Comment on attachment 363111 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=363111&action=review

> Source/WebInspectorUI/UserInterface/Views/Popover.js:587
> +                this._prefersDarkColorSchemeMediaQueryList = window.matchMedia("(prefers-color-scheme: dark)");

Cool!