Bug 196117 - Web Inspector: Use CSS variables for text color in Computed panel
Summary: Web Inspector: Use CSS variables for text color in Computed panel
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: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-21 16:19 PDT by Nikita Vasilyev
Modified: 2019-03-21 18:23 PDT (History)
5 users (show)

See Also:


Attachments
Patch (1.92 KB, patch)
2019-03-21 16:20 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff
[Image] Dark mode with patch applied (76.58 KB, image/png)
2019-03-21 16:23 PDT, Nikita Vasilyev
no flags Details
[Image] Before the patch (82.04 KB, image/png)
2019-03-21 16:25 PDT, Nikita Vasilyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2019-03-21 16:19:15 PDT
ComputedStyleSection.css has hardcoded colors `hsl(0, 0%, 50%)` and `hsl(0, 0%, 50%)`,
which in the light mode match exactly --text-color-tertiary and --text-color-secondary respectively.
Comment 1 Nikita Vasilyev 2019-03-21 16:20:02 PDT
Created attachment 365636 [details]
Patch
Comment 2 Nikita Vasilyev 2019-03-21 16:23:56 PDT
Created attachment 365638 [details]
[Image] Dark mode with patch applied
Comment 3 Nikita Vasilyev 2019-03-21 16:25:51 PDT
Created attachment 365640 [details]
[Image] Before the patch
Comment 4 Joseph Pecoraro 2019-03-21 16:32:26 PDT
Light mode before/after? Since the --text-color-tertiary doesn't change between light/dark mode.
Comment 5 Nikita Vasilyev 2019-03-21 17:04:30 PDT
(In reply to Joseph Pecoraro from comment #4)
> Light mode before/after? Since the --text-color-tertiary doesn't change
> between light/dark mode.

Light mode before and after are exactly the same because the hardcoded colors matched the variables!
Comment 6 WebKit Commit Bot 2019-03-21 18:22:53 PDT
Comment on attachment 365636 [details]
Patch

Clearing flags on attachment: 365636

Committed r243352: <https://trac.webkit.org/changeset/243352>
Comment 7 WebKit Commit Bot 2019-03-21 18:22:55 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2019-03-21 18:23:20 PDT
<rdar://problem/49134295>