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.

sass: Apply on() function to text color variables

by roundabout, Friday, 8 February 2019, 23:46:46 (1549669606), pushed by roundabout, Sunday, 11 May 2025, 13:22:33 (1746969753)

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

0b5826303c8e0ed54dc3faeb22fa4559a144a6e0

src/_sass/_colors.scss

@@ -99,21 +99,21 @@ $overlay-selected: rgba($primary, 0.32);

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            // Text and derivative colors
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            //
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text:                                  if($variant == 'light', rgba(black, 0.87), white);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text-secondary:                        if($variant == 'light', rgba(black, 0.54), rgba(white, 0.7));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text-disabled:                         if($variant == 'light', rgba(black, 0.38), rgba(white, 0.5));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text-secondary-disabled:               if($variant == 'light', rgba(black, 0.26), rgba(white, 0.3));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $track:                                 if($variant == 'light', rgba(black, 0.26), rgba(white, 0.3));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $divider:                               if($variant == 'light', rgba(black, 0.12), rgba(white, 0.12));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $fill:                                  if($variant == 'light', rgba(black, 0.04), rgba(white, 0.04));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text:                         if($topbar == 'light', rgba(black, 0.87), white);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text-secondary:               if($topbar == 'light', rgba(black, 0.54), rgba(white, 0.7));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text-disabled:                if($topbar == 'light', rgba(black, 0.38), rgba(white, 0.5));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text-secondary-disabled:      if($topbar == 'light', rgba(black, 0.26), rgba(white, 0.3));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-track:                        if($topbar == 'light', rgba(black, 0.26), rgba(white, 0.3));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-divider:                      if($topbar == 'light', rgba(black, 0.12), rgba(white, 0.12));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-fill:                         if($topbar == 'light', rgba(black, 0.04), rgba(white, 0.04));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text:                                  on($background);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text-secondary:                        on($background, secondary);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text-disabled:                         on($background, disabled);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $text-secondary-disabled:               on($background, secondary-disabled);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $track:                                 on($background, track);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $divider:                               on($background, divider);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $fill:                                  on($background, fill);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text:                         on($titlebar);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text-secondary:               on($titlebar, secondary);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text-disabled:                on($titlebar, disabled);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-text-secondary-disabled:      on($titlebar, secondary-disabled);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-track:                        on($titlebar, track);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-divider:                      on($titlebar, divider);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $titlebar-fill:                         on($titlebar, fill);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            // FIXME: Electron/Atom menu does not allow translucent colors
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $solid-text:                            if($variant == 'light', $grey-900, $white);