Bug 188119

Summary: Web Inspector: Dark Mode: SourceCodeTextEditor thread indicator widget is too light
Product: WebKit Reporter: Matt Baker <mattbaker>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 188126    
Attachments:
Description Flags
[Image] SourceCodeTextEditor thread indicator
none
Patch
mattbaker: review-
[Screenshot] With patch applied
none
Archive of layout-test-results from ews206 for win-future
none
[Image] Light vs dark indicators
none
Patch
none
[Image] With patch applied
none
Patch
none
[Image] With patch applied
none
Archive of layout-test-results from ews206 for win-future none

Matt Baker
Reported 2018-07-27 12:41:40 PDT
Created attachment 345937 [details] [Image] SourceCodeTextEditor thread indicator Summary: SourceCodeTextEditor thread indicator widget is too light. Note: The thread indicator is only shown when debugging pages with multiple threads (workers), such as the Inspector.
Attachments
[Image] SourceCodeTextEditor thread indicator (306.38 KB, image/png)
2018-07-27 12:41 PDT, Matt Baker
no flags
Patch (8.00 KB, patch)
2018-07-27 17:16 PDT, Nikita Vasilyev
mattbaker: review-
[Screenshot] With patch applied (30.70 KB, image/png)
2018-07-27 17:17 PDT, Nikita Vasilyev
no flags
Archive of layout-test-results from ews206 for win-future (13.14 MB, application/zip)
2018-07-28 06:12 PDT, EWS Watchlist
no flags
[Image] Light vs dark indicators (21.96 KB, image/png)
2018-07-30 12:00 PDT, Matt Baker
no flags
Patch (7.52 KB, patch)
2018-07-31 17:01 PDT, Nikita Vasilyev
no flags
[Image] With patch applied (30.03 KB, image/png)
2018-07-31 17:05 PDT, Nikita Vasilyev
no flags
Patch (8.28 KB, patch)
2018-07-31 18:16 PDT, Nikita Vasilyev
no flags
[Image] With patch applied (36.99 KB, image/png)
2018-07-31 18:17 PDT, Nikita Vasilyev
no flags
Archive of layout-test-results from ews206 for win-future (12.95 MB, application/zip)
2018-07-31 20:44 PDT, EWS Watchlist
no flags
Radar WebKit Bug Importer
Comment 1 2018-07-27 12:42:04 PDT
Nikita Vasilyev
Comment 2 2018-07-27 16:05:08 PDT
This is good time to refactor HTML and CSS: <div class="line-indicator-widget thread-widget inline"> <span class="arrow"></span> <span class="text">Page</span> </div> The arrow is drawn using CSS borders (https://css-tricks.com/snippets/css/css-triangle/), the 2000s tech :) We can get rid of the arrow div and use masks via clip-path. https://bennettfeely.com/clippy/
Nikita Vasilyev
Comment 3 2018-07-27 17:16:39 PDT
Nikita Vasilyev
Comment 4 2018-07-27 17:17:35 PDT
Created attachment 345979 [details] [Screenshot] With patch applied
EWS Watchlist
Comment 5 2018-07-28 06:12:19 PDT
Comment on attachment 345978 [details] Patch Attachment 345978 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/8682620 New failing tests: http/tests/security/video-poster-cross-origin-crash2.html
EWS Watchlist
Comment 6 2018-07-28 06:12:32 PDT
Created attachment 345991 [details] Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Matt Baker
Comment 7 2018-07-30 11:54:55 PDT
Comment on attachment 345978 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345978&action=review > Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.css:57 > + -webkit-clip-path: polygon(0% 50%, 8px 100%, 100% 100%, 100% 0, 8px 0); Nice! Can't we drop the -webkit prefix? > Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.css:190 > +} Why can't this go in DarkMode.css? Is it a priority issue? > Source/WebInspectorUI/UserInterface/Views/Variables.css:35 > + --text-color: black; This var isn't being used.
Matt Baker
Comment 8 2018-07-30 12:00:28 PDT
Created attachment 346080 [details] [Image] Light vs dark indicators I think the target indicator and expression highlight colors should match, like they do in light mode (see screenshot). Looking closer, the gutter indicator is slightly different, but I had to sample pixels to tell. I like the bright green you used for the target indicator. Maybe we could use that color for the other parts too.
Matt Baker
Comment 9 2018-07-30 12:01:28 PDT
Comment on attachment 345978 [details] Patch r-, only because of the color consistency issue mentioned above.
Nikita Vasilyev
Comment 10 2018-07-30 12:02:22 PDT
(In reply to Matt Baker from comment #7) > Comment on attachment 345978 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=345978&action=review > > > Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.css:57 > > + -webkit-clip-path: polygon(0% 50%, 8px 100%, 100% 100%, 100% 0, 8px 0); > > Nice! Can't we drop the -webkit prefix? Unfortunately not. In WebKit, clip-path without the prefix appears to only work for SVG.
Nikita Vasilyev
Comment 11 2018-07-30 12:05:35 PDT
(In reply to Matt Baker from comment #8) > Created attachment 346080 [details] > [Image] Light vs dark indicators > > I think the target indicator and expression highlight colors should match, > like they do in light mode (see screenshot). Looking closer, the gutter > indicator is slightly different, but I had to sample pixels to tell. > > I like the bright green you used for the target indicator. Maybe we could > use that color for the other parts too. I like the bright green, too. I think. Since it has higher luminosity, I need to test how it works with the syntax highlighting.
Nikita Vasilyev
Comment 12 2018-07-31 17:01:36 PDT
Nikita Vasilyev
Comment 13 2018-07-31 17:05:12 PDT
Created attachment 346229 [details] [Image] With patch applied (In reply to Matt Baker from comment #8) > I like the bright green you used for the target indicator. Maybe we could > use that color for the other parts too. I used a slightly darker green for the execution range highlight so the code has enough contract with the background.
Nikita Vasilyev
Comment 14 2018-07-31 18:16:11 PDT
Nikita Vasilyev
Comment 15 2018-07-31 18:17:21 PDT
Created attachment 346243 [details] [Image] With patch applied
EWS Watchlist
Comment 16 2018-07-31 20:44:43 PDT
Comment on attachment 346242 [details] Patch Attachment 346242 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/8718888 New failing tests: imported/blink/transitions/unprefixed-transform.html
EWS Watchlist
Comment 17 2018-07-31 20:44:55 PDT
Created attachment 346252 [details] Archive of layout-test-results from ews206 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews206 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Matt Baker
Comment 18 2018-08-01 10:45:30 PDT
Comment on attachment 346242 [details] Patch r=me, very nice.
WebKit Commit Bot
Comment 19 2018-08-01 11:12:24 PDT
Comment on attachment 346242 [details] Patch Clearing flags on attachment: 346242 Committed r234465: <https://trac.webkit.org/changeset/234465>
WebKit Commit Bot
Comment 20 2018-08-01 11:12:25 PDT
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.