RESOLVED FIXED 195190
Web Inspector: system accent color follow-ups
https://bugs.webkit.org/show_bug.cgi?id=195190
Summary Web Inspector: system accent color follow-ups
Matt Baker
Reported 2019-02-28 15:46:25 PST
A few follow-ups to https://webkit.org/b/193507. - Use accent color for selected timeline record bars - Use accent color for selected console item "border" - Increase contrast of activated toolbar button item (Inspect Element button) - Pressed ScopeBarItem accent color should be same brightness as pressed RadioButtonNavigationItem
Attachments
Patch (4.75 KB, patch)
2019-02-28 15:52 PST, Matt Baker
no flags
[Image] New accent color uses (571.57 KB, image/png)
2019-02-28 15:56 PST, Matt Baker
no flags
Patch (4.92 KB, patch)
2019-02-28 18:18 PST, Matt Baker
no flags
[Image] Inspect Element button (21.61 KB, image/png)
2019-02-28 18:19 PST, Matt Baker
no flags
[Image] Selected timeline segment with patch applied (8.12 KB, image/png)
2019-03-06 13:01 PST, Nikita Vasilyev
no flags
Radar WebKit Bug Importer
Comment 1 2019-02-28 15:50:56 PST
Matt Baker
Comment 2 2019-02-28 15:52:03 PST
Matt Baker
Comment 3 2019-02-28 15:56:11 PST
Created attachment 363271 [details] [Image] New accent color uses
Matt Baker
Comment 4 2019-02-28 16:03:01 PST
Comment on attachment 363270 [details] Patch Reviewable, but investigating a ButtonToolbarItem issue.
Matt Baker
Comment 5 2019-02-28 18:18:03 PST
Matt Baker
Comment 6 2019-02-28 18:19:29 PST
Created attachment 363285 [details] [Image] Inspect Element button Comparison of light/dark, new/old.
Matt Baker
Comment 7 2019-02-28 18:20:21 PST
(In reply to Matt Baker from comment #6) > Created attachment 363285 [details] > [Image] Inspect Element button > > Comparison of light/dark, new/old. The CSS shown to the left refers to the "Patch" column only.
Devin Rousso
Comment 8 2019-03-05 22:17:27 PST
Comment on attachment 363284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363284&action=review r=me > Source/WebInspectorUI/UserInterface/Views/ButtonToolbarItem.css:73 > + filter: brightness(1.35); Nice! > Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.css:45 > + background-color: var(--selected-text-background-color) !important; This is almost too light now. It makes it harder to notice for small record bars. Can you darken it a bit?
Nikita Vasilyev
Comment 9 2019-03-06 12:53:44 PST
Comment on attachment 363284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363284&action=review Looks all good to me! >> Source/WebInspectorUI/UserInterface/Views/ButtonToolbarItem.css:73 >> + filter: brightness(1.35); > > Nice! I honestly didn't notice that the color was different — it just looked right! >> Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.css:45 >> + background-color: var(--selected-text-background-color) !important; > > This is almost too light now. It makes it harder to notice for small record bars. Can you darken it a bit? Too light on what configuration? It doesn't seem too light to me. I tried both Dark and Light modes with various accent colors.
Nikita Vasilyev
Comment 10 2019-03-06 13:01:10 PST
Created attachment 363776 [details] [Image] Selected timeline segment with patch applied Looks good to me.
Devin Rousso
Comment 11 2019-03-06 13:25:50 PST
(In reply to Nikita Vasilyev from comment #10) > Created attachment 363776 [details] > [Image] Selected timeline segment with patch applied > > Looks good to me. I personally think that that doesn't match the "pattern" of the other records. The difference between the border and the content of the selected record is greater than that of the non-selected records. Basically, I think we should make the light-blue slightly darker (or make the border slightly lighter) so that the difference is less pronounced.
Nikita Vasilyev
Comment 12 2019-03-06 14:35:49 PST
(In reply to Devin Rousso from comment #11) > (In reply to Nikita Vasilyev from comment #10) > > Created attachment 363776 [details] > > [Image] Selected timeline segment with patch applied > > > > Looks good to me. > I personally think that that doesn't match the "pattern" of the other > records. The difference between the border and the content of the selected > record is greater than that of the non-selected records. > > Basically, I think we should make the light-blue slightly darker (or make > the border slightly lighter) so that the difference is less pronounced. I see what you mean now. If anything, the difference should be more pronounced. Try selecting red bars with red accent colors!
Matt Baker
Comment 13 2019-03-06 15:45:47 PST
Comment on attachment 363284 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363284&action=review >>> Source/WebInspectorUI/UserInterface/Views/TimelineRecordBar.css:45 >>> + background-color: var(--selected-text-background-color) !important; >> >> This is almost too light now. It makes it harder to notice for small record bars. Can you darken it a bit? > > Too light on what configuration? > > It doesn't seem too light to me. I tried both Dark and Light modes with various accent colors. I see what you mean, but I think the current approach is fine for now - it's simple and uses unmodified system colors.
WebKit Commit Bot
Comment 14 2019-03-06 16:13:20 PST
Comment on attachment 363284 [details] Patch Clearing flags on attachment: 363284 Committed r242578: <https://trac.webkit.org/changeset/242578>
WebKit Commit Bot
Comment 15 2019-03-06 16:13:22 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.