Changeset 242072 in webkit
- Timestamp:
- Feb 25, 2019, 10:36:28 PM (6 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r242063 r242072 1 2019-02-25 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Dark Mode: Network Overview Graph segments have distracting white box shadow 4 https://bugs.webkit.org/show_bug.cgi?id=194966 5 6 Reviewed by Devin Rousso. 7 8 * UserInterface/Views/Variables.css: 9 (@media (prefers-color-scheme: dark)): 10 Make global timeline even/odd colors where odd is the default content background 11 color and even is slightly different. These were used in multiple places. 12 13 * UserInterface/Views/CPUTimelineOverviewGraph.css: 14 (.timeline-overview-graph.cpu > .legend): 15 (.timeline-overview-graph.cpu:nth-child(even) > .legend): 16 (@media (prefers-color-scheme: dark)): Deleted. 17 * UserInterface/Views/MemoryTimelineOverviewGraph.css: 18 (.timeline-overview-graph.memory > .legend): 19 (.timeline-overview-graph.memory:nth-child(even) > .legend): 20 (@media (prefers-color-scheme: dark)): Deleted. 21 * UserInterface/Views/NetworkTimelineOverviewGraph.css: 22 (.timeline-overview-graph.network > .graph-row > .timeline-record-bar > .segment:not(.inactive)): 23 (.timeline-overview-graph.network:nth-child(even) > .graph-row > .timeline-record-bar > .segment:not(.inactive)): 24 Use the variable colors now and eliminate dark mode blocks. 25 1 26 2019-02-25 Nikita Vasilyev <nvasilyev@apple.com> 2 27 -
trunk/Source/WebInspectorUI/UserInterface/Views/CPUTimelineOverviewGraph.css
r240865 r242072 40 40 font-size: 8px; 41 41 color: hsl(0, 0%, 50%); 42 background-color: white;42 background-color: var(--timeline-odd-background-color); 43 43 pointer-events: none; 44 44 … … 55 55 56 56 .timeline-overview-graph.cpu:nth-child(even) > .legend { 57 background-color: hsl(0, 0%, 96%); 58 } 59 60 @media (prefers-color-scheme: dark) { 61 .timeline-overview-graph.cpu > .legend { 62 background-color: hsl(0, 0%, 21%); 63 } 64 65 .timeline-overview-graph.cpu:nth-child(even) > .legend { 66 background-color: hsl(0, 0%, 25%); 67 } 57 background-color: var(--timeline-even-background-color); 68 58 } 69 59 -
trunk/Source/WebInspectorUI/UserInterface/Views/MemoryTimelineOverviewGraph.css
r240518 r242072 40 40 font-size: 8px; 41 41 color: hsl(0, 0%, 50%); 42 background-color: white;42 background-color: var(--timeline-odd-background-color); 43 43 pointer-events: none; 44 44 } … … 69 69 70 70 .timeline-overview-graph.memory:nth-child(even) > .legend { 71 background-color: hsl(0, 0%, 96%); 72 } 73 74 @media (prefers-color-scheme: dark) { 75 .timeline-overview-graph.memory > .legend { 76 background-color: hsl(0, 0%, 21%); 77 } 78 79 .timeline-overview-graph.memory:nth-child(even) > .legend { 80 background-color: hsl(0, 0%, 25%); 81 } 71 background-color: var(--timeline-even-background-color); 82 72 } 83 73 -
trunk/Source/WebInspectorUI/UserInterface/Views/NetworkTimelineOverviewGraph.css
r187105 r242072 38 38 39 39 .timeline-overview-graph.network > .graph-row > .timeline-record-bar > .segment:not(.inactive) { 40 box-shadow: white1px 0 0;40 box-shadow: var(--timeline-odd-background-color) 1px 0 0; 41 41 } 42 42 43 43 .timeline-overview-graph.network:nth-child(even) > .graph-row > .timeline-record-bar > .segment:not(.inactive) { 44 box-shadow: hsl(0, 0%, 96%) 1px 0 0;44 box-shadow: var(--timeline-even-background-color) 1px 0 0; 45 45 } -
trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css
r241638 r242072 115 115 --timeline-selection-z-index: 16; 116 116 117 --timeline-odd-background-color: var(--background-color-content); 118 --timeline-even-background-color: hsl(0, 0%, 96%); 119 117 120 --memory-javascript-fill-color: hsl(269, 65%, 75%); 118 121 --memory-javascript-stroke-color: hsl(269, 33%, 50%); … … 280 283 --search-highlight-underline-color: hsla(60, 100%, 50%, 0.5); 281 284 285 --timeline-even-background-color: hsl(0, 0%, 25%); 286 282 287 /* Invert colors yet preserve the hue */ 283 288 --filter-invert: invert(100%) hue-rotate(180deg);
Note:
See TracChangeset
for help on using the changeset viewer.