Commit 14c1e19e authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: update responsive design icon.

R=vsevik@chromium.org

Review URL: https://codereview.chromium.org/345713004

git-svn-id: svn://svn.chromium.org/blink/trunk@176514 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b1999912
{ {
"statusbarButtonGlyphs.svg": "9717a272c3d0c6f9804f78fe5d65a1dd", "statusbarButtonGlyphs.svg": "3f642dca97434b4cbb6491e2854dc69f",
"breakpoint.svg": "69cd92d807259c022791112809b97799", "breakpoint.svg": "69cd92d807259c022791112809b97799",
"responsiveDesign.svg": "bc00a0a7fb0a47453929f94c9a4e003c", "responsiveDesign.svg": "bc00a0a7fb0a47453929f94c9a4e003c",
"settingsListRemove.svg": "ce9e7c5c5cdaef28e6ee51d9478d5485", "settingsListRemove.svg": "ce9e7c5c5cdaef28e6ee51d9478d5485",
......
{ {
"statusbarButtonGlyphs.svg": "9717a272c3d0c6f9804f78fe5d65a1dd", "statusbarButtonGlyphs.svg": "3f642dca97434b4cbb6491e2854dc69f",
"breakpoint.svg": "69cd92d807259c022791112809b97799", "breakpoint.svg": "69cd92d807259c022791112809b97799",
"responsiveDesign.svg": "bc00a0a7fb0a47453929f94c9a4e003c", "responsiveDesign.svg": "bc00a0a7fb0a47453929f94c9a4e003c",
"settingsListRemove.svg": "ce9e7c5c5cdaef28e6ee51d9478d5485", "settingsListRemove.svg": "ce9e7c5c5cdaef28e6ee51d9478d5485",
......
...@@ -2295,7 +2295,7 @@ body.inactive .sidebar-tree-item.selected { ...@@ -2295,7 +2295,7 @@ body.inactive .sidebar-tree-item.selected {
} }
.responsive-design-status-bar-item .glyph { .responsive-design-status-bar-item .glyph {
-webkit-mask-position: -160px 0px; -webkit-mask-position: -164px 0px;
} }
.delete-storage-status-bar-item .glyph { .delete-storage-status-bar-item .glyph {
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
import devtools_file_hashes import devtools_file_hashes
import hashlib import hashlib
import optimize_svg_file
import os import os
import os.path import os.path
import re import re
...@@ -50,16 +49,6 @@ def check_installed(app_name): ...@@ -50,16 +49,6 @@ def check_installed(app_name):
sys.exit(1) sys.exit(1)
def optimize_svg(svg_file_path):
errors = []
optimize_svg_file.optimize_svg(svg_file_path, errors)
if len(errors) != 0:
print "Failed to optimize '%s'" % (svg_file_path)
for error in errors:
print "ERROR: %s" % (error)
return True
return False
check_installed("inkscape") check_installed("inkscape")
scripts_path = os.path.dirname(os.path.abspath(__file__)) scripts_path = os.path.dirname(os.path.abspath(__file__))
...@@ -73,10 +62,6 @@ hashes_file_path = image_sources_path + "/" + hashes_file_name ...@@ -73,10 +62,6 @@ hashes_file_path = image_sources_path + "/" + hashes_file_name
file_names = os.listdir(image_sources_path) file_names = os.listdir(image_sources_path)
svg_file_paths = [image_sources_path + "/" + file_name for file_name in file_names if file_name.endswith(".svg")] svg_file_paths = [image_sources_path + "/" + file_name for file_name in file_names if file_name.endswith(".svg")]
svg_optimization_failures = [optimize_svg(svg_file_path) for svg_file_path in svg_file_paths]
if any(svg_optimization_failures):
sys.exit(1)
svg_file_paths_to_convert = devtools_file_hashes.files_with_invalid_hashes(hashes_file_path, svg_file_paths) svg_file_paths_to_convert = devtools_file_hashes.files_with_invalid_hashes(hashes_file_path, svg_file_paths)
svg_file_names = [re.sub(".svg$", "", re.sub(".*/", "", file_path)) for file_path in svg_file_paths_to_convert] svg_file_names = [re.sub(".svg$", "", re.sub(".*/", "", file_path)) for file_path in svg_file_paths_to_convert]
......
...@@ -79,7 +79,7 @@ check_installed("pngout", None, "Utility can be downloaded here: http://www.jono ...@@ -79,7 +79,7 @@ check_installed("pngout", None, "Utility can be downloaded here: http://www.jono
def optimize_png(file_name): def optimize_png(file_name):
png_full_path = images_path + "/" + file_name + ".png" png_full_path = images_path + "/" + file_name + ".png"
optimize_command = "%s -o2 %s" % (optimize_script_path, png_full_path) optimize_command = "bash %s -o2 %s" % (optimize_script_path, png_full_path)
proc = subprocess.Popen(optimize_command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=chromium_src_path) proc = subprocess.Popen(optimize_command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=chromium_src_path)
return proc return proc
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment