A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 render-assets.sh

View raw Download
text/x-shellscript • 842 B
Bourne-Again shell script, ASCII text executable
        
            
1
#!/bin/bash
2
set -ueo pipefail
3
4
if [[ ! "$(which inkscape 2> /dev/null)" ]]; then
5
echo inkscape needs to be installed to generate the png.
6
exit 1
7
fi
8
9
if [[ ! "$(which optipng 2> /dev/null)" ]]; then
10
echo optipng needs to be installed to generate the png.
11
exit 1
12
fi
13
14
gtk() (
15
cd src/gtk
16
rm assets/*.png || :
17
./render-assets.sh
18
)
19
20
gtk2_light() (
21
cd src/gtk-2.0
22
rm assets/*.png || :
23
./render-assets.sh light
24
)
25
26
gtk2_dark() (
27
cd src/gtk-2.0
28
rm assets-dark/*.png || :
29
./render-assets.sh dark
30
)
31
32
case "${1:-}" in
33
"")
34
gtk
35
gtk2_light
36
gtk2_dark
37
;;
38
gtk)
39
gtk
40
;;
41
gtk2)
42
gtk2_light
43
gtk2_dark
44
;;
45
gtk2-light)
46
gtk2_light
47
;;
48
gtk2-dark)
49
gtk2_dark
50
;;
51
*)
52
echo "Unknown argument: '$1'"
53
echo "Use 'gtk', 'gtk2', 'gtk2-light' or 'gtk2-dark' as an argument."
54
;;
55
esac
56