Changeset 250859 in webkit


Ignore:
Timestamp:
Oct 8, 2019 2:09:17 PM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Canvas: make it more obvious that the cards in the overview are clickable
https://bugs.webkit.org/show_bug.cgi?id=202680

Reviewed by Matt Baker.

Add a slight darkening (or lightening when in dark mode) of the background behind the
content preview in the overview.

  • UserInterface/Views/CanvasOverviewContentView.css:

(.content-view.canvas-overview .content-view.canvas):
(.content-view.canvas-overview .content-view.canvas, .content-view.canvas-overview .content-view.canvas > .preview > img): Added.
(.content-view.canvas-overview .content-view.canvas.recording-active > .progress-view, .content-view.canvas-overview .content-view.canvas > .preview):
(.content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover, .content-view.canvas-overview .content-view.canvas > .preview:hover): Added.
(@media (prefers-color-scheme: dark) .content-view.canvas-overview .content-view.canvas, .content-view.canvas-overview .content-view.canvas > .preview > img): Added.
(@media (prefers-color-scheme: dark) .content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover, .content-view.canvas-overview .content-view.canvas > .preview:hover): Added.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r250858 r250859  
     12019-10-08  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Canvas: make it more obvious that the cards in the overview are clickable
     4        https://bugs.webkit.org/show_bug.cgi?id=202680
     5
     6        Reviewed by Matt Baker.
     7
     8        Add a slight darkening (or lightening when in dark mode) of the background behind the
     9        content preview in the overview.
     10
     11        * UserInterface/Views/CanvasOverviewContentView.css:
     12        (.content-view.canvas-overview .content-view.canvas):
     13        (.content-view.canvas-overview .content-view.canvas, .content-view.canvas-overview .content-view.canvas > .preview > img): Added.
     14        (.content-view.canvas-overview .content-view.canvas.recording-active > .progress-view, .content-view.canvas-overview .content-view.canvas > .preview):
     15        (.content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover, .content-view.canvas-overview .content-view.canvas > .preview:hover): Added.
     16        (@media (prefers-color-scheme: dark) .content-view.canvas-overview .content-view.canvas, .content-view.canvas-overview .content-view.canvas > .preview > img): Added.
     17        (@media (prefers-color-scheme: dark) .content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover, .content-view.canvas-overview .content-view.canvas > .preview:hover): Added.
     18
    1192019-10-08  Devin Rousso  <drousso@apple.com>
    220
  • trunk/Source/WebInspectorUI/UserInterface/Views/CanvasOverviewContentView.css

    r246953 r250859  
    3636    margin: var(--item-margin);
    3737    width: 400px;
    38     background-color: white;
    39 }
    40 
    41 .content-view.canvas-overview .content-view.canvas {
    4238    border: 1px solid var(--border-color);
    4339    cursor: pointer;
     40}
     41
     42.content-view.canvas-overview .content-view.canvas,
     43.content-view.canvas-overview .content-view.canvas > .preview > img {
     44    background-color: white;
    4445}
    4546
     
    125126.content-view.canvas-overview .content-view.canvas > .preview {
    126127    height: 280px;
     128    transition: background-color 200ms ease-in-out;
     129}
     130
     131.content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover,
     132.content-view.canvas-overview .content-view.canvas > .preview:hover {
     133    background-color: hsl(0, 0%, 96%);
    127134}
    128135
     
    207214    }
    208215
    209     .content-view.canvas-overview .content-view.canvas {
     216    .content-view.canvas-overview .content-view.canvas,
     217    .content-view.canvas-overview .content-view.canvas > .preview > img {
    210218        background-color: var(--background-color-secondary);
     219    }
     220
     221    .content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover,
     222    .content-view.canvas-overview .content-view.canvas > .preview:hover {
     223        background-color: var(--background-color-tertiary);
    211224    }
    212225
Note: See TracChangeset for help on using the changeset viewer.