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.

GTK3: Fix rendering error and incorrect dpi number for assets

by roundabout, Saturday, 3 December 2016, 09:11:51 (1480756311), pushed by roundabout, Sunday, 11 May 2025, 13:22:03 (1746969723)

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

085e83a601e39158f9cc13a354c1223fd456983c

src/gtk-3.0/gtk-common/assets.svg

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

                                
                                
                                
                            
                                
                                    
                                        
                                        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" viewBox="0 0 400 400">
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              <sodipodi:namedview showgrid="true">
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <inkscape:grid empspacing="4"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              </sodipodi:namedview>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -65,9 +65,6 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <rect id="40x40" width="40" height="40" opacity="0"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <rect id="48x48" width="48" height="48" opacity="0"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <solidColor id="solid-color-dark" solid-color="#000000" solid-opacity="0.8"/>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <solidColor id="solid-color-light" solid-color="#FFFFFF"/>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <linearGradient id="color-dark">
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  <stop stop-color="#000000" stop-opacity="0.8"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                </linearGradient>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk-3.0/gtk-common/render-assets.sh

@@ -25,7 +25,7 @@ else

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                echo
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                echo Rendering $ASSETS_DIR/$i@2.png
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                $INKSCAPE --export-id=$i \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-dpi=180 \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                      --export-dpi=192 \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                          --export-id-only \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                          --export-png=$ASSETS_DIR/$i@2.png $SRC_FILE >/dev/null #\
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                # && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i@2.png