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-asset.sh

View raw Download
text/x-shellscript • 368 B
Bourne-Again shell script, ASCII text executable
        
            
1
#!/bin/bash
2
set -ueo pipefail
3
4
RENDER_SVG="$(command -v rendersvg)" || true
5
INKSCAPE="$(command -v inkscape)"
6
OPTIPNG="$(command -v optipng)"
7
8
i="$1"
9
10
echo "Rendering '$i.png'"
11
if [[ -n "${RENDER_SVG}" ]] ; then
12
"$RENDER_SVG" --dpi 96 "$i.svg" "$i.png"
13
else
14
"$INKSCAPE" --export-dpi=96 --export-png="$i.png" "$i.svg" >/dev/null
15
fi
16
17
"$OPTIPNG" -o7 --quiet "$i.png"
18