annotate gtk-3.0/render-assets.sh @ 113:3a790d4649eb default tip

Fix GTK4/Adwaita outline and background issues * Views are now used in popovers but shouldn't have "normal" view background colour * Flat buttons should be flat, not bordered/outlines * Spinbuttons in lists don't need outlines on their buttons
author IBBoard <dev@ibboard.co.uk>
date Sun, 01 May 2022 11:34:31 +0100
parents a48477723cfe
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 #! /bin/bash
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 INKSCAPE="/usr/bin/inkscape"
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 OPTIPNG="/usr/bin/optipng"
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 SRC_FILE="assets.svg"
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 ASSETS_DIR="assets"
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 INDEX="assets.txt"
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 for i in `cat $INDEX`
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 do
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 if [ -f $ASSETS_DIR/$i.png ]; then
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 echo $ASSETS_DIR/$i.png exists.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 else
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 echo
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 echo Rendering $ASSETS_DIR/$i.png
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 $INKSCAPE --export-id=$i \
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 --export-id-only \
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null #\
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 # && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 fi
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 if [ -f $ASSETS_DIR/$i@2.png ]; then
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 echo $ASSETS_DIR/$i@2.png exists.
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 else
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 echo
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 echo Rendering $ASSETS_DIR/$i@2.png
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 $INKSCAPE --export-id=$i \
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 --export-dpi=180 \
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 --export-id-only \
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 --export-png=$ASSETS_DIR/$i@2.png $SRC_FILE >/dev/null #\
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 # && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i@2.png
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 fi
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 done
a48477723cfe Base Adwaita theme for GTK 3.16
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 exit 0