diff options
author | Jakub Steiner <jimmac@gmail.com> | 2020-05-07 19:41:01 +0200 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2020-05-07 19:41:01 +0200 |
commit | f62619ace9949fc87163a3f30973111989240fba (patch) | |
tree | d5c96827422156d8d3bd5fa731b3b617901dda10 | |
parent | 7f420ce44064fe74056858cfe9e88e671231eb48 (diff) | |
download | adwaita-icon-theme-f62619ace9949fc87163a3f30973111989240fba.tar.gz |
symbolic: render script tweaks
-rwxr-xr-x | render-symbolic.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render-symbolic.rb b/render-symbolic.rb index 4c181345f..73dd0ff63 100755 --- a/render-symbolic.rb +++ b/render-symbolic.rb @@ -24,15 +24,15 @@ def chopSVG(icon) # extract the icon cmd = "#{INKSCAPE} -g #{icon[:file]} --select #{icon[:id]} --verb=\"FitCanvasToSelection;EditInvertInAllLayers" cmd += ";EditDelete;EditSelectAll;SelectionUnGroup;SelectionUnGroup;SelectionUnGroup;StrokeToPath;FileVacuum" - cmd += ";FileSave;FileQuit;\"" + cmd += ";FileSave;FileQuit;\" > /dev/null 2>&1" system(cmd) # remove bounding rectangle #bounding rectangle is now a path. needs to be removed svgcrop = Document.new(File.new(icon[:file], 'r')) svgcrop.root.each_element("//path") do |path| - puts(path.attributes['style']) + #puts(path.attributes['style']) if path.attributes['style'].include? 'fill:none;' - puts "DEBUG: found rect to remove #{path}" + #puts "DEBUG: found rect to remove #{path}" path.remove end end |