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.

 parse-sass.sh

View raw Download
text/x-shellscript • 974 B
Bourne-Again shell script, ASCII text executable
        
            
1
#!/bin/bash
2
set -ueo pipefail
3
4
if [ ! "$(which sassc 2> /dev/null)" ]; then
5
echo sassc needs to be installed to generate the css.
6
exit 1
7
fi
8
9
SASSC_OPT="-M -t expanded"
10
11
_COLOR_VARIANTS=(
12
''
13
'-dark'
14
'-light'
15
)
16
if [ ! -z "${COLOR_VARIANTS:-}" ] ; then
17
IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
18
fi
19
_SIZE_VARIANTS=(
20
''
21
'-compact'
22
)
23
if [ ! -z "${SIZE_VARIANTS:-}" ] ; then
24
IFS=', ' read -r -a _SIZE_VARIANTS <<< "${SIZE_VARIANTS:-}"
25
fi
26
27
echo "== Generating the CSS..."
28
29
for color in "${_COLOR_VARIANTS[@]}" ; do
30
sassc $SASSC_OPT src/gtk-3.0/3.18/gtk${color}.{scss,css}
31
32
for size in "${_SIZE_VARIANTS[@]}" ; do
33
for version in '3.20' '3.22' ; do
34
sassc $SASSC_OPT src/gtk-3.0/${version}/gtk${color}${size}.{scss,css}
35
done
36
37
# This gnome-shell theme can skip versions '3.20' & '2.22'
38
for version in '3.18' '3.24' ; do
39
sassc $SASSC_OPT src/gnome-shell/${version}/gnome-shell${color}${size}.{scss,css}
40
done
41
done
42
done
43