Embed styles in gold library

This commit is contained in:
Christian Muehlhaeuser
2019-12-06 01:34:27 +01:00
parent 6f31dbf5ec
commit 6fe32ed145
10 changed files with 200 additions and 5 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
for style in ./styles/*.json; do
echo "Generating screenshot for ${style}"
filename="`basename -s .json ${style}`.png"
light=""
if [[ $style == *"light"* ]]; then
light="-l"
fi
./termshot ${light} -o ./styles/ -f "$filename" ./gold -s ${style}
pngcrush -ow "./styles/$filename"
done