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