Title: [250859] trunk/Source/WebInspectorUI
- Revision
- 250859
- Author
- [email protected]
- Date
- 2019-10-08 14:09:17 -0700 (Tue, 08 Oct 2019)
Log 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.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (250858 => 250859)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-10-08 20:49:48 UTC (rev 250858)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-10-08 21:09:17 UTC (rev 250859)
@@ -1,5 +1,23 @@
2019-10-08 Devin Rousso <[email protected]>
+ 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.
+
+2019-10-08 Devin Rousso <[email protected]>
+
Web Inspector: Canvas: don't show an empty preview for WebGPU devices
https://bugs.webkit.org/show_bug.cgi?id=202679
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CanvasOverviewContentView.css (250858 => 250859)
--- trunk/Source/WebInspectorUI/UserInterface/Views/CanvasOverviewContentView.css 2019-10-08 20:49:48 UTC (rev 250858)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CanvasOverviewContentView.css 2019-10-08 21:09:17 UTC (rev 250859)
@@ -35,14 +35,15 @@
flex-grow: 0;
margin: var(--item-margin);
width: 400px;
- background-color: white;
-}
-
-.content-view.canvas-overview .content-view.canvas {
border: 1px solid var(--border-color);
cursor: pointer;
}
+.content-view.canvas-overview .content-view.canvas,
+.content-view.canvas-overview .content-view.canvas > .preview > img {
+ background-color: white;
+}
+
.content-view.canvas-overview .content-view.canvas.recording-active {
border-color: red;
}
@@ -124,8 +125,14 @@
.content-view.canvas-overview .content-view.canvas.recording-active > .progress-view,
.content-view.canvas-overview .content-view.canvas > .preview {
height: 280px;
+ transition: background-color 200ms ease-in-out;
}
+.content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover,
+.content-view.canvas-overview .content-view.canvas > .preview:hover {
+ background-color: hsl(0, 0%, 96%);
+}
+
.content-view.canvas-overview .content-view.canvas.recording-active > .preview {
display: none;
}
@@ -206,10 +213,16 @@
background-color: unset;
}
- .content-view.canvas-overview .content-view.canvas {
+ .content-view.canvas-overview .content-view.canvas,
+ .content-view.canvas-overview .content-view.canvas > .preview > img {
background-color: var(--background-color-secondary);
}
+ .content-view.canvas-overview .content-view.canvas.recording-active > .progress-view:hover,
+ .content-view.canvas-overview .content-view.canvas > .preview:hover {
+ background-color: var(--background-color-tertiary);
+ }
+
.content-view.canvas-overview .content-view.canvas.recording-active {
--recording-color: hsl(0, 100%, 39%);
border-color: var(--recording-color);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes