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: Use parallel for asset-dark as well

Also added cosmetic changes to the scripts.

by roundabout, Sunday, 21 January 2018, 04:53:36 (1516510416), pushed by roundabout, Sunday, 11 May 2025, 13:22:19 (1746969739)

Author identity: nana-4 <hnmaigo@gmail.com>

62d928cc46169b575822cc40b6c1a0627d1c3064

src/gtk-2.0/render-asset-dark.sh

@@ -0,0 +1,31 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        #! /bin/bash
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        set -ueo pipefail
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        INKSCAPE="/usr/bin/inkscape"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        OPTIPNG="/usr/bin/optipng"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        SRC_FILE="assets-dark.svg"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ASSETS_DIR="assets-dark"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        i=${1}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        GTK2_HIDPI=$(echo ${GTK2_HIDPI-False} | tr '[:upper:]' '[:lower:]')
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [[ ${GTK2_HIDPI} == "true" ]] ; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	EXTRA_OPTIONS="--export-dpi=192"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        else
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	EXTRA_OPTIONS=""
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ -f $ASSETS_DIR/$i.png ]; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            echo $ASSETS_DIR/$i.png exists.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        else
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            echo Rendering $ASSETS_DIR/$i.png
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            $INKSCAPE --export-id=$i \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-id-only \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-background-opacity=0 \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      $EXTRA_OPTIONS \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        exit 0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk-2.0/render-asset.sh

@@ -23,7 +23,7 @@ else

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                $INKSCAPE --export-id=$i \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                          --export-id-only \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                          --export-background-opacity=0 \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        			  $EXTRA_OPTIONS \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      $EXTRA_OPTIONS \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                          --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            fi
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk-2.0/render-assets-dark.sh

@@ -1,24 +1,15 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            #! /bin/bash
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        set -ueo pipefail
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        INKSCAPE="/usr/bin/inkscape"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        OPTIPNG="/usr/bin/optipng"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        SRC_FILE="assets-dark.svg"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ASSETS_DIR="assets-dark"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            INDEX="assets.txt"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        for i in `cat $INDEX`
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        do 
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ -f $ASSETS_DIR/$i.png ]; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            echo $ASSETS_DIR/$i.png exists.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        else
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            echo
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            echo Rendering $ASSETS_DIR/$i.png
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            $INKSCAPE --export-id=$i \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-id-only \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-background-opacity=0 \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png 
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        done
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        _parallel() {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          which parallel && parallel $@ || (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            while read i; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              $1 $i
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            done
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        cat $INDEX | _parallel ./render-asset-dark.sh
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            exit 0
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk-2.0/render-assets.sh

@@ -4,12 +4,11 @@ set -ueo pipefail

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            INDEX="assets.txt"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            _parallel() {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	which parallel && parallel $@ || (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		while read i;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        			$1 $i
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		done
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          which parallel && parallel $@ || (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            while read i; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              $1 $i
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            done
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            cat $INDEX | _parallel ./render-asset.sh
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk/render-assets.sh

@@ -4,12 +4,11 @@ set -ueo pipefail

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            INDEX="assets.txt"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            _parallel() {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	which parallel && parallel $@ || (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		while read i;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        			$1 $i
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		done
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          which parallel && parallel $@ || (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            while read i; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              $1 $i
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            done
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            cat $INDEX | _parallel ./render-asset.sh