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.

gtk2: Fix focus ring

by roundabout, Wednesday, 14 November 2018, 20:27:21 (1542227241), pushed by roundabout, Sunday, 11 May 2025, 13:22:28 (1746969748)

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

6d70410adac0ac4246fbbeb694494b8b89ad8887

src/gtk-2.0/assets-dark.svg

@@ -370,7 +370,7 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  <use xlink:href="#1x1" x="1" fill="url(#color-base-alt)"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                </g>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <rect id="base-focus" x="1" y="1" width="7" height="7" rx="3" fill="none" stroke="url(#color-fg)" stroke-width="2" opacity="0.24"/>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <rect id="base-focus" x="1" y="1" width="8" height="8" rx="3" fill="none" stroke="url(#color-fg)" stroke-width="2" opacity="0.24"/>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <g id="base-treeview-ltr-button">
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  <use xlink:href="#2x2" fill="url(#color-base)"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk-2.0/assets-dark/focus.png

src/gtk-2.0/assets.svg

@@ -370,7 +370,7 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  <use xlink:href="#1x1" x="1" fill="url(#color-base-alt)"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                </g>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <rect id="base-focus" x="1" y="1" width="7" height="7" rx="3" fill="none" stroke="url(#color-fg)" stroke-width="2" opacity="0.24"/>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            <rect id="base-focus" x="1" y="1" width="8" height="8" rx="3" fill="none" stroke="url(#color-fg)" stroke-width="2" opacity="0.24"/>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <g id="base-treeview-ltr-button">
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  <use xlink:href="#2x2" fill="url(#color-base)"/>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk-2.0/assets/focus.png

src/gtk-2.0/main.rc

@@ -681,7 +681,7 @@ style "default" {

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                image {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  function = FOCUS
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  file     = "assets/focus.png"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              border   = {4, 4, 4, 4}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              border   = {5, 5, 5, 5} # Super strange, {4, 4, 4, 4} does not work properly...
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  stretch  = TRUE
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                }