Changeset 243424 in webkit


Ignore:
Timestamp:
Mar 24, 2019 1:21:13 PM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Canvas: missing icons for WebGL2 contexts
https://bugs.webkit.org/show_bug.cgi?id=196136

Reviewed by Timothy Hatcher.

  • UserInterface/Views/CanvasSidebarPanel.css:

(.sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled > .glyph): Added.
(.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas:matches(.canvas-2d, .bitmaprenderer) .icon): Added.
(.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas:matches(.webgl, .webgl2, .webgpu, .webmetal) .icon): Added.
(@media (prefers-color-scheme: dark)):
(.sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled): Deleted.
(.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas.canvas-2d .icon): Deleted.
(.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.casnvas.webgl .icon): Deleted.
Use the 2D icon for BitmapRenderer and the 3D icon for WebGL2, WebMetals, and WebGPU.
Drive-by: the start/stop button text was too dark when disabled in dark mode.

  • UserInterface/Models/Canvas.js:

Drive-by: "gpu" => "webgpu", to match the protocol string.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r243403 r243424  
     12019-03-24  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Canvas: missing icons for WebGL2 contexts
     4        https://bugs.webkit.org/show_bug.cgi?id=196136
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Views/CanvasSidebarPanel.css:
     9        (.sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled > .glyph): Added.
     10        (.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas:matches(.canvas-2d, .bitmaprenderer) .icon): Added.
     11        (.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas:matches(.webgl, .webgl2, .webgpu, .webmetal) .icon): Added.
     12        (@media (prefers-color-scheme: dark)):
     13        (.sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled): Deleted.
     14        (.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas.canvas-2d .icon): Deleted.
     15        (.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.casnvas.webgl .icon): Deleted.
     16        Use the 2D icon for BitmapRenderer and the 3D icon for WebGL2, WebMetals, and WebGPU.
     17        Drive-by: the start/stop button text was too dark when disabled in dark mode.
     18
     19        * UserInterface/Models/Canvas.js:
     20        Drive-by: "gpu" => "webgpu", to match the protocol string.
     21
    1222019-03-22  Devin Rousso  <drousso@apple.com>
    223
  • trunk/Source/WebInspectorUI/UserInterface/Models/Canvas.js

    r242759 r243424  
    413413    WebGL: "webgl",
    414414    WebGL2: "webgl2",
    415     WebGPU: "gpu",
     415    WebGPU: "webgpu",
    416416    WebMetal: "webmetal",
    417417};
  • trunk/Source/WebInspectorUI/UserInterface/Views/CanvasSidebarPanel.css

    r241875 r243424  
    3131}
    3232
    33 .sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled {
     33.sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled > .glyph {
    3434    filter: grayscale();
    3535    opacity: 0.5;
    3636}
    3737
    38 .sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas.canvas-2d .icon {
     38.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas:matches(.canvas-2d, .bitmaprenderer) .icon {
    3939    content: url(../Images/Canvas2D.svg);
    4040}
    4141
    42 .sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas.webgl .icon {
     42.sidebar > .panel.navigation.canvas > .content > .tree-outline .item.canvas:matches(.webgl, .webgl2, .webgpu, .webmetal) .icon {
    4343    content: url(../Images/Canvas3D.svg);
    4444}
     
    101101
    102102@media (prefers-color-scheme: dark) {
    103     .sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled {
     103    .sidebar > .panel.navigation.canvas > .navigation-bar > .item.record-start-stop.disabled > .glyph {
    104104        filter: grayscale() invert();
    105105    }
Note: See TracChangeset for help on using the changeset viewer.