aboutsummaryrefslogtreecommitdiff
path: root/common/gtk-2.0/render-dark-assets.sh
diff options
context:
space:
mode:
authorHorst31802015-07-08 02:51:09 +0200
committerHorst31802015-07-08 02:51:09 +0200
commit2275fcb548b8d0ec2d489b2f4eec24b418f49786 (patch)
treed0a24766c9d3eafc5e6827ddfdaa9570615c9dab /common/gtk-2.0/render-dark-assets.sh
parent46d8e44b97664675178168c4e370b71cf1d62578 (diff)
downloadsolarc-theme-2275fcb548b8d0ec2d489b2f4eec24b418f49786.tar.gz
solarc-theme-2275fcb548b8d0ec2d489b2f4eec24b418f49786.tar.xz
solarc-theme-2275fcb548b8d0ec2d489b2f4eec24b418f49786.zip
refinements
Diffstat (limited to 'common/gtk-2.0/render-dark-assets.sh')
-rwxr-xr-xcommon/gtk-2.0/render-dark-assets.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/common/gtk-2.0/render-dark-assets.sh b/common/gtk-2.0/render-dark-assets.sh
new file mode 100755
index 0000000..6b9c823
--- /dev/null
+++ b/common/gtk-2.0/render-dark-assets.sh
@@ -0,0 +1,23 @@
+#! /bin/bash
+
+INKSCAPE="/usr/bin/inkscape"
+OPTIPNG="/usr/bin/optipng"
+
+SRC_FILE="assets-dark.svg"
+ASSETS_DIR="assets-dark"
+INDEX="assets.txt"
+
+for i in `cat $INDEX`
+do
+if [ -f $ASSETS_DIR/$i.png ]; then
+ echo $ASSETS_DIR/$i.png exists.
+else
+ echo
+ echo Rendering $ASSETS_DIR/$i.png
+ $INKSCAPE --export-id=$i \
+ --export-id-only \
+ --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null #\
+ # && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
+fi
+done
+exit 0