papirus-icon-theme/tools
Serhii Yeremenko 0bf0ba8d12
Remove custom folder color support for Folder Color #3551
Since folder-color 0.3.1 (6 May 2023) stops to support custom color.
See 7aafcbacfe
2023-11-01 14:00:03 +02:00
..
work Don't fail if one of source dir is missing 2023-08-27 20:22:26 +03:00
_clean_attrs.sed ffsvg.sh: handle 0 and 0.00n+ numbers in x|y|rx|ry 2023-08-20 17:54:08 +03:00
_clean_style_attr.sed ffsvg.sh: clean default values for Inkscape 1.2.2 2023-08-09 00:00:05 +03:00
_fix_color_scheme.sh
_scour.sh
build_color_folders.sh Remove custom folder color support for Folder Color #3551 2023-11-01 14:00:03 +02:00
ffsvg.sh
flathub_list_updater.sh Add a comment with new Flatpak packages list #2007 2023-09-07 13:03:43 +03:00
make-dist.sh Minor fix make-dist.sh 2021-10-17 08:19:08 +03:00
missing_flathub_apps.sh Ignore apps from Sugar Labs® on Flathub #2007 2023-09-16 09:17:01 +03:00
README.md fix typos 2021-09-23 18:43:19 +03:00
svgo.config.js

Tools

  • ffsvg.sh PATH... — finds, fixes and cleans SVG files
  • _clean_attrs.sed — removes unused attributes and removes attributes with default values from elements inside SVG files (part of ffsvg.sh)
  • _clean_style_attr.sed — 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)
  • _scour.sh FILE... — Scour wrapper (part of ffsvg.sh)
  • svgo.config.jsSVGO configuration (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