papirus-icon-theme/tools
2016-12-06 23:46:09 +04:00
..
template oops 2016-12-06 23:46:09 +04:00
1-inkscape.sh update tools #201 2016-12-04 17:44:15 +03:00
2-papirus-stylesheet.sh update tools #201 2016-12-04 17:44:15 +03:00
_fix_color_scheme.sh Add some tools and README 2016-12-05 23:33:56 +02:00
README.md Add some tools and README 2016-12-05 23:33:56 +02:00
run_on_all.sh Add some tools and README 2016-12-05 23:33:56 +02:00
run_on_dirs.sh Add some tools and README 2016-12-05 23:33:56 +02:00
run_on_files.sh Add some tools and README 2016-12-05 23:33:56 +02:00
svgo.yml Prevent delete <clipPath> by SVGO #200 #204 2016-12-06 00:03:29 +02:00

Tools

  • run_on_all.sh — optimize and fix all SVG files in the repository
  • run_on_dirs.sh DIRECTORY... — optimize and fix SVG files in the directory
  • run_on_files.sh FILE... — optimize and fix the SVG files
  • _fix_color_scheme.sh FILE... — remove a color property from style="color:#5c616c;fill:currentColor;opacity:1" if class ColorScheme-* exists
  • svgo.ymlSVGO configuraion

Useful snippets

Optimize and fix SVG files that are changed but not committed

git diff --name-only | xargs ./tools/run_on_files.sh

Optimize and fix SVG files that are committed in 043906b

git show --name-only 043906b | xargs ./tools/run_on_files.sh