papirus-icon-theme/tools
2017-01-18 03:02:38 +04:00
..
work new foders #298 2017-01-18 03:02:38 +04:00
_clean_style_attr.sh Resolved #229 2016-12-22 17:00:29 +02:00
_fix_color_scheme.sh add stroke to _fix_color_scheme.sh #292 2017-01-14 12:19:26 +04:00
_svgo.yml Change indent option in _svgo.yml. Resolved #261 2017-01-08 09:18:22 +02:00
ffsvg.sh Add set -e 2016-12-18 09:53:22 +02:00
new-folders-1.svg new foders examples #298 2017-01-17 18:18:41 +04:00
new-folders-2.svg update new-folders #298 2017-01-17 19:30:19 +04:00
README.md Update tools 2016-12-17 20:39:05 +02:00

Tools

  • ffsvg.sh PATH... — finds, fixes and cleans SVG files
  • _clean_style_attr.sh FILE... — removes unused properties and removes properties with default values from style attributes inside SVG files (part of ffsvg.sh)
  • _fix_color_scheme.sh FILE... — looks in the SVG files for certain colors and replaces them with the corresponding stylesheet class. Fixes a color scheme after Inkscape (part of ffsvg.sh)
  • _svgo.ymlSVGO configuraion (part of ffsvg.sh)

Useful snippets

Optimize and fix SVG files that are added or modified but not committed (recommended)

git status --porcelain | awk '/A|M/{print $2}' | xargs ./tools/ffsvg.sh

Optimize and fix SVG files that are committed in 043906b

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