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 • 1.14 kiB
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
_COLOR_VARIANTS=('' '-dark' '-light')
10
if [ ! -z "${COLOR_VARIANTS:-}" ]; then
11
IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
12
fi
13
14
_SIZE_VARIANTS=('' '-compact')
15
if [ ! -z "${SIZE_VARIANTS:-}" ]; then
16
IFS=', ' read -r -a _SIZE_VARIANTS <<< "${SIZE_VARIANTS:-}"
17
fi
18
19
SASSC_OPT="-M -t expanded"
20
21
echo "== Generating the CSS..."
22
23
for color in "${_COLOR_VARIANTS[@]}"; do
24
# The '-compact' variant is not supported for gtk '3.18'
25
sassc $SASSC_OPT src/gtk/3.18/gtk${color}.{scss,css}
26
27
for size in "${_SIZE_VARIANTS[@]}"; do
28
for version in '3.20' '3.22'; do
29
sassc $SASSC_OPT src/gtk/${version}/gtk${color}${size}.{scss,css}
30
done
31
32
# This gnome-shell theme can skip versions '3.20' & '2.22'
33
for version in '3.18' '3.24' '3.26' '3.28'; do
34
sassc $SASSC_OPT src/gnome-shell/${version}/gnome-shell${color}${size}.{scss,css}
35
done
36
done
37
done
38
39
sassc $SASSC_OPT src/chrome/chrome-scrollbar/scrollbars.{scss,css}
40
sassc $SASSC_OPT src/chrome/chrome-scrollbar-dark/scrollbars.{scss,css}
41