comparison gtk-4.4/render-assets.sh @ 98:9da64f7bb19c

Add support for GTK4 Includes `gtk-minimal.css`, which can be used to override Adwaita colours by running `ln -s ~/.themes/Adwaita-Dark-Green/gtk-4.4/gtk-minimal.css ~/.config/gtk-4.0/gtk.css`
author IBBoard <dev@ibboard.co.uk>
date Sat, 26 Mar 2022 20:03:44 +0000
parents
children
comparison
equal deleted inserted replaced
97:d721ae7a505b 98:9da64f7bb19c
1 #! /bin/bash
2
3 INKSCAPE="/usr/bin/inkscape"
4 OPTIPNG="/usr/bin/optipng"
5
6 INDEX="assets.txt"
7
8 for s in "" "-hc";
9 do
10 SRC_FILE="assets$s.svg"
11 ASSETS_DIR="assets$s"
12
13 for i in `cat $INDEX`
14 do
15 if [ -f $ASSETS_DIR/$i.png ]; then
16 echo $ASSETS_DIR/$i.png exists.
17 else
18 echo
19 echo Rendering $ASSETS_DIR/$i.png
20 $INKSCAPE --export-id=$i \
21 --export-id-only \
22 --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null #\
23 # && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
24 fi
25 if [ -f $ASSETS_DIR/$i@2.png ]; then
26 echo $ASSETS_DIR/$i@2.png exists.
27 else
28 echo
29 echo Rendering $ASSETS_DIR/$i@2.png
30 $INKSCAPE --export-id=$i \
31 --export-dpi=180 \
32 --export-id-only \
33 --export-png=$ASSETS_DIR/$i@2.png $SRC_FILE >/dev/null #\
34 # && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i@2.png
35 fi
36 done
37 done
38 exit 0