Web Inspector: Show type info icon is blurry
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Sep 2014 06:03:05 +0000 (06:03 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Sep 2014 06:03:05 +0000 (06:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=137125

Reviewed by Darin Adler.

* UserInterface/Images/NavigationItemTypes.svg:
* UserInterface/Views/ScriptContentView.js:
(WebInspector.ScriptContentView):
* UserInterface/Views/TextContentView.js:
(WebInspector.TextContentView):
* UserInterface/Views/TextResourceContentView.js:
(WebInspector.TextResourceContentView):

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Images/NavigationItemTypes.svg
Source/WebInspectorUI/UserInterface/Views/ScriptContentView.js
Source/WebInspectorUI/UserInterface/Views/TextContentView.js
Source/WebInspectorUI/UserInterface/Views/TextResourceContentView.js

index 64e2b54..7e2e6c6 100644 (file)
@@ -1,3 +1,18 @@
+2014-09-25  Timothy Hatcher  <timothy@apple.com>
+
+        Web Inspector: Show type info icon is blurry
+        https://bugs.webkit.org/show_bug.cgi?id=137125
+
+        Reviewed by Darin Adler.
+
+        * UserInterface/Images/NavigationItemTypes.svg:
+        * UserInterface/Views/ScriptContentView.js:
+        (WebInspector.ScriptContentView):
+        * UserInterface/Views/TextContentView.js:
+        (WebInspector.TextContentView):
+        * UserInterface/Views/TextResourceContentView.js:
+        (WebInspector.TextResourceContentView):
+
 2014-09-25  Saam Barati  <saambarati1@gmail.com>
 
         Web Inspector: console.assert(bitString) TypeSet:50 
index a5f2196..0977f48 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!-- Copyright © 2014 Apple Inc. All rights reserved. -->
-<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14">
-    <rect class="stroked" fill="none" stroke="black" x="0.5" y="1.0" width="12" height="12" rx="2"/>
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 14">
+    <rect class="stroked" fill="none" stroke="black" x="0.5" y="0.5" width="12" height="13" rx="2"/>
     <path class="stroked" fill="none" stroke="black" stroke-linecap="square" d="M 6.5 5.5 L 6.5 9.5 M 4.0 4.5 L 9.0 4.5"/>
 </svg>
index aaf6e34..f27190e 100644 (file)
@@ -60,10 +60,9 @@ WebInspector.ScriptContentView = function(script)
     this._prettyPrintButtonNavigationItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._togglePrettyPrint, this);
     this._prettyPrintButtonNavigationItem.enabled = false; // Enabled when the text editor is populated with content.
 
-    var showTypesImageSize = WebInspector.Platform.isLegacyMacOS ? 15 : 16;
     var toolTipTypes = WebInspector.UIString("Show type information");
     var activatedToolTipTypes = WebInspector.UIString("Hide type information");
-    this._showTypesButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("show-types", toolTipTypes, activatedToolTipTypes, "Images/NavigationItemTypes.svg", showTypesImageSize, showTypesImageSize);
+    this._showTypesButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("show-types", toolTipTypes, activatedToolTipTypes, "Images/NavigationItemTypes.svg", 13, 14);
     this._showTypesButtonNavigationItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._toggleTypeAnnotations, this);
     this._showTypesButtonNavigationItem.enabled = false;
 
index b5e9a88..88513f3 100644 (file)
@@ -51,10 +51,9 @@ WebInspector.TextContentView = function(string, mimeType)
     this._prettyPrintButtonNavigationItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._togglePrettyPrint, this);
     this._prettyPrintButtonNavigationItem.enabled = this._textEditor.canBeFormatted();
 
-    var showTypesImageSize = WebInspector.Platform.isLegacyMacOS ? 15 : 16;
     var toolTipTypes = WebInspector.UIString("Show type information");
     var activatedToolTipTypes = WebInspector.UIString("Hide type information");
-    this._showTypesButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("show-types", toolTipTypes, activatedToolTipTypes, "Images/NavigationItemTypes.svg", showTypesImageSize, showTypesImageSize);
+    this._showTypesButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("show-types", toolTipTypes, activatedToolTipTypes, "Images/NavigationItemTypes.svg", 13, 14);
     this._showTypesButtonNavigationItem.enabled = false;
 };
 
index c8a5dd2..1728734 100644 (file)
@@ -52,10 +52,9 @@ WebInspector.TextResourceContentView = function(resource)
     this._prettyPrintButtonNavigationItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._togglePrettyPrint, this);
     this._prettyPrintButtonNavigationItem.enabled = false; // Enabled when the text editor is populated with content.
 
-    var showTypesImageSize = WebInspector.Platform.isLegacyMacOS ? 15 : 16;
     var toolTipTypes = WebInspector.UIString("Show type information");
     var activatedToolTipTypes = WebInspector.UIString("Hide type information");
-    this._showTypesButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("show-types", toolTipTypes, activatedToolTipTypes, "Images/NavigationItemTypes.svg", showTypesImageSize, showTypesImageSize);
+    this._showTypesButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("show-types", toolTipTypes, activatedToolTipTypes, "Images/NavigationItemTypes.svg", 13, 14);
     this._showTypesButtonNavigationItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._toggleTypeAnnotations, this);
     this._showTypesButtonNavigationItem.enabled = false;