Changeset 265125 in webkit


Ignore:
Timestamp:
Jul 30, 2020 6:44:55 PM (4 years ago)
Author:
Nikita Vasilyev
Message:

REGRESSION (r?): Web Inspector: Timelines: blue border below selected timeline when in edit mode
https://bugs.webkit.org/show_bug.cgi?id=214979
<rdar://problem/66338399>

Reviewed by Devin Rousso.

Color the top border after the selected item with the same background as the selected item.
When editing, don't color that border with the selected item background.

  • UserInterface/Views/TimelineOverview.css:

(.timeline-overview.edit-instruments > .tree-outline.timelines .item:not(:first-child),):
(body:matches(.window-inactive, .window-docked-inactive) .timeline-overview:not(.edit-instruments) > .tree-outline.timelines .item.selected + .item):
(body:not(.window-inactive, .window-docked-inactive) .timeline-overview:not(.edit-instruments) > .tree-outline.timelines:focus-within .item.selected + .item):
(@media (prefers-color-scheme: dark) .timeline-overview:not(.frames) > .graphs-container > .timeline-overview-graph:nth-child(even)):
(.timeline-overview > .tree-outline.timelines .item.selected + .item): Deleted.
(body:not(.window-inactive, .window-docked-inactive) .timeline-overview > .tree-outline.timelines:focus-within .item.selected + .item): Deleted.
(@media (prefers-color-scheme: dark) .timeline-overview.edit-instruments > .tree-outline.timelines .item:not(:first-child),): Deleted.
(@media (prefers-color-scheme: dark) .timeline-overview > .tree-outline.timelines .item.selected + .item): Deleted.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r265121 r265125  
     12020-07-30  Nikita Vasilyev  <nvasilyev@apple.com>
     2
     3        REGRESSION (r?): Web Inspector: Timelines: blue border below selected timeline when in edit mode
     4        https://bugs.webkit.org/show_bug.cgi?id=214979
     5        <rdar://problem/66338399>
     6
     7        Reviewed by Devin Rousso.
     8
     9        Color the top border after the selected item with the same background as the selected item.
     10        When editing, don't color that border with the selected item background.
     11
     12        * UserInterface/Views/TimelineOverview.css:
     13        (.timeline-overview.edit-instruments > .tree-outline.timelines .item:not(:first-child),):
     14        (body:matches(.window-inactive, .window-docked-inactive) .timeline-overview:not(.edit-instruments) > .tree-outline.timelines .item.selected + .item):
     15        (body:not(.window-inactive, .window-docked-inactive) .timeline-overview:not(.edit-instruments) > .tree-outline.timelines:focus-within .item.selected + .item):
     16        (@media (prefers-color-scheme: dark) .timeline-overview:not(.frames) > .graphs-container > .timeline-overview-graph:nth-child(even)):
     17        (.timeline-overview > .tree-outline.timelines .item.selected + .item): Deleted.
     18        (body:not(.window-inactive, .window-docked-inactive) .timeline-overview > .tree-outline.timelines:focus-within .item.selected + .item): Deleted.
     19        (@media (prefers-color-scheme: dark) .timeline-overview.edit-instruments > .tree-outline.timelines .item:not(:first-child),): Deleted.
     20        (@media (prefers-color-scheme: dark) .timeline-overview > .tree-outline.timelines .item.selected + .item): Deleted.
     21
    1222020-07-30  Devin Rousso  <drousso@apple.com>
    223
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineOverview.css

    r258809 r265125  
    114114.timeline-overview.edit-instruments > .tree-outline.timelines .item:not(:first-child),
    115115.timeline-overview > .tree-outline.timelines .item:not(.selected):not(:first-child) {
    116     border-top: 1px solid hsla(0, 0%, 0%, 0.09);
    117 }
    118 
    119 .timeline-overview > .tree-outline.timelines .item.selected + .item {
    120     border-top-color: hsl(0, 0%, 83%);
    121 }
    122 
    123 body:not(.window-inactive, .window-docked-inactive) .timeline-overview > .tree-outline.timelines:focus-within .item.selected + .item {
    124     border-top-color: hsl(209, 100%, 49%);
     116    border-top-color: hsla(0, 0%, var(--foreground-lightness), 0.09);
     117}
     118
     119body:matches(.window-inactive, .window-docked-inactive) .timeline-overview:not(.edit-instruments) > .tree-outline.timelines .item.selected + .item {
     120    border-top-color: var(--selected-background-color-unfocused);
     121}
     122
     123body:not(.window-inactive, .window-docked-inactive) .timeline-overview:not(.edit-instruments) > .tree-outline.timelines:focus-within .item.selected + .item {
     124    border-top-color: var(--selected-background-color);
    125125}
    126126
     
    239239        background: var(--background-color-alternate);
    240240    }
    241 
    242     .timeline-overview.edit-instruments > .tree-outline.timelines .item:not(:first-child),
    243     .timeline-overview > .tree-outline.timelines .item:not(.selected):not(:first-child) {
    244         border-top-color: hsla(0, 0%, var(--foreground-lightness), 0.09);
    245     }
    246 
    247     .timeline-overview > .tree-outline.timelines .item.selected + .item {
    248         border-top-color: hsla(0, 0%, var(--foreground-lightness), 0.09);
    249     }
    250 }
     241}
Note: See TracChangeset for help on using the changeset viewer.