| 1 | #!/bin/sh |
| 2 | # Compile the Darkmatter stylesheets. |
| 3 | # |
| 4 | # Both gtk.css and gtk-dark.css are built from dark sources: Darkmatter has no |
| 5 | # light variant, and GTK apps that ask for the dark stylesheet by name should |
| 6 | # get the same theme rather than fall through to something else. |
| 7 | # |
| 8 | # Run from the theme root: sh src/build.sh |
| 9 | |
| 10 | set -e |
| 11 | command -v sassc >/dev/null || { |
| 12 | echo "sassc not found: doas apk add sassc" >&2 |
| 13 | exit 1 |
| 14 | } |
| 15 | [ -d gtk-3.0 ] || { echo "run me from the theme root" >&2; exit 1; } |
| 16 | |
| 17 | for v in gtk gtk-dark; do |
| 18 | sassc -I gtk-3.0 "gtk-3.0/$v.scss" "gtk-3.0/$v.css" |
| 19 | echo " gtk-3.0/$v.css" |
| 20 | done |
| 21 | for v in gtk gtk-dark; do |
| 22 | sassc -I gtk-4.0 -I gtk-3.0 "gtk-4.0/$v.scss" "gtk-4.0/$v.css" |
| 23 | echo " gtk-4.0/$v.css" |
| 24 | done |