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.

feat(parse-sass.sh): allow to configure which theme variants to compile via env vars (#135)

by roundabout, Sunday, 27 August 2017, 05:07:11 (1503810431), pushed by roundabout, Sunday, 11 May 2025, 13:22:13 (1746969733)

Author identity: nana-4 <nana-4@users.noreply.github.com>

e29430645a962255c38286be8e5b68244d3ceede

parse-sass.sh

@@ -1,4 +1,5 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            #!/bin/bash
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        set -ueo pipefail
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            if [ ! "$(which sassc 2> /dev/null)" ]; then
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              echo sassc needs to be installed to generate the css.
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -7,12 +8,28 @@ fi

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            SASSC_OPT="-M -t expanded"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        echo Generating the css...
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        _COLOR_VARIANTS=(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	''
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	'-dark'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	'-light'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ ! -z "${COLOR_VARIANTS:-}" ] ; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	IFS=', ' read -r -a _COLOR_VARIANTS <<< "${COLOR_VARIANTS:-}"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        _SIZE_VARIANTS=(
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	''
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	'-compact'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ ! -z "${SIZE_VARIANTS:-}" ] ; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	IFS=', ' read -r -a _SIZE_VARIANTS <<< "${SIZE_VARIANTS:-}"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        echo "== Generating the CSS..."
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        for color in '' '-dark' '-light' ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        for color in "${_COLOR_VARIANTS[@]}" ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              sassc $SASSC_OPT src/gtk-3.0/3.18/gtk${color}.{scss,css}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          for size in '' '-compact' ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          for size in "${_SIZE_VARIANTS[@]}" ; do
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                for version in '3.20' '3.22' ; do
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  sassc $SASSC_OPT src/gtk-3.0/${version}/gtk${color}${size}.{scss,css}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                done