Added script tools/generateThemeSVG2PNG to generate PNG icons from theme SVG images, and updated TooWaBlue theme. #3247

This commit is contained in:
Beep6581
2016-04-23 02:01:15 +02:00
parent 098603c647
commit 3e2c710b45
32 changed files with 793 additions and 42 deletions

18
tools/generateThemeSVG2PNG Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Generates PNG icons from SVG theme images.
# Run this script from the rtdata/theme/images folder:
# cd ~/repo-rt/rtdata/theme/images
# ~/repo-rt/tools/generateThemeSvg2Png
for d in svg/*; do
themeDir="${d#*/}"
if [[ ! -d "${themeDir}" ]]; then
mkdir "${themeDir}"
fi
for i in "svg/${themeDir}/"*.svg; do
iconName="${i##*/}"
iconName="${iconName%.*}"
printf '%s\n' "" "Converting: svg/${themeDir}/${iconName}.svg"
inkscape --file="svg/${themeDir}/${iconName}.svg" --export-png="${themeDir}/${iconName}.png" --export-area-page --without-gui
done
done