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.

Add render-assets.sh to render PNG assets more easily

by roundabout, Tuesday, 26 September 2017, 14:18:29 (1506435509), pushed by roundabout, Sunday, 11 May 2025, 13:22:15 (1746969735)

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

761dc859e2a3a5f3064f726e8b4160985f8a8e4d

render-assets.sh

@@ -0,0 +1,54 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        #!/bin/bash
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ ! "$(which inkscape 2> /dev/null)" ]; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          echo inkscape needs to be installed to generate the png.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          exit 1
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [ ! "$(which optipng 2> /dev/null)" ]; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          echo optipng needs to be installed to generate the png.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          exit 1
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        gtk3() (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cd src/gtk-3.0/gtk-common
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          rm assets/*.png
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          ./render-assets.sh
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        gtk2_light() (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cd src/gtk-2.0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          rm assets/*.png
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          ./render-assets.sh
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        gtk2_dark() (
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cd src/gtk-2.0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          rm assets-dark/*.png
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          ./render-assets-dark.sh
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        )
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        case "${1}" in
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          "")
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk3
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk2_light
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk2_dark
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ;;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk3)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk3
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ;;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk2)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk2_light
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk2_dark
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ;;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk2-light)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk2_light
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ;;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk2-dark)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            gtk2_dark
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ;;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          *)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            echo "Unknown argument: '${1}'"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            echo "Use 'gtk3', 'gtk2', 'gtk2-light' or 'gtk2-dark' as an argument."
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            ;;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        esac