Web Inspector: create better icon for Canvas Path navigation item
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Aug 2017 03:13:53 +0000 (03:13 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Aug 2017 03:13:53 +0000 (03:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=175274

Reviewed by Joseph Pecoraro.

* UserInterface/Images/Path.svg: Added.
* UserInterface/Views/RecordingContentView.js:
(WI.RecordingContentView):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220898 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Images/Path.svg [new file with mode: 0644]
Source/WebInspectorUI/UserInterface/Views/RecordingContentView.js

index 7cb8200..b602039 100644 (file)
@@ -1,3 +1,14 @@
+2017-08-17  Matt Baker  <mattbaker@apple.com>
+
+        Web Inspector: create better icon for Canvas Path navigation item
+        https://bugs.webkit.org/show_bug.cgi?id=175274
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Images/Path.svg: Added.
+        * UserInterface/Views/RecordingContentView.js:
+        (WI.RecordingContentView):
+
 2017-08-17  Nikita Vasilyev  <nvasilyev@apple.com>
 
         Web Inspector: Styles: replace "Enter Class Name" with "Add New Class"
diff --git a/Source/WebInspectorUI/UserInterface/Images/Path.svg b/Source/WebInspectorUI/UserInterface/Images/Path.svg
new file mode 100644 (file)
index 0000000..05d4322
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright © 2017 Apple Inc. All rights reserved. -->
+<svg xmlns="http://www.w3.org/2000/svg" id="root" version="1.1" viewBox="0 0 16 16">
+    <circle stroke="currentColor" fill="none" cx="3" cy="13" r="1.5"/>
+    <circle stroke="currentColor" fill="none" cx="13" cy="3" r="1.5"/>
+    <path stroke="currentColor" fill="none" d="M 3 12 S 3 2 8 8 c 5.44 6.52 5 -4 5 -4"/>
+</svg>
index 9181844..f8b3ce0 100644 (file)
@@ -41,7 +41,7 @@ WI.RecordingContentView = class RecordingContentView extends WI.ContentView
             if (WI.RecordingContentView.supportsCanvasPathDebugging()) {
                 this._pathContext = null;
 
-                this._showPathButtonNavigationItem = new WI.ActivateButtonNavigationItem("show-path", WI.UIString("Show Path"), WI.UIString("Hide Path"), "Images/PaintFlashing.svg", 13, 13);
+                this._showPathButtonNavigationItem = new WI.ActivateButtonNavigationItem("show-path", WI.UIString("Show Path"), WI.UIString("Hide Path"), "Images/Path.svg", 16, 16);
                 this._showPathButtonNavigationItem.addEventListener(WI.ButtonNavigationItem.Event.Clicked, this._showPathButtonClicked, this);
                 this._showPathButtonNavigationItem.activated = !!WI.settings.showCanvasPath.value;
             }