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.

fix(_colors.scss.template, change_colors.sh): substitute more colors to template variables (#217)

by roundabout, Tuesday, 20 March 2018, 11:31:01 (1521545461), pushed by roundabout, Sunday, 11 May 2025, 13:22:22 (1746969742)

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

55ca0ed4588f31bc6699cf87bd001f4ced6f2a14

change_color.sh

@@ -91,6 +91,13 @@ else

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            		exit 1
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            	fi
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            fi
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if [[ $(date +"%m%d") = "0401" ]] && [[ ! $(echo "$@" | grep "no-jokes") ]] ; then
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	echo -e "\n\nError patching uxtheme.dll\n\n"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	ACCENT_BG=000000 BG=C0C0C0 BTN_BG=C0C0C0 BTN_FG=000000 FG=000000
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	GNOME_SHELL_PANEL_OPACITY=1 HDR_BTN_BG=C0C0C0 HDR_BTN_FG=000000 MENU_BG=C0C0C0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        	MENU_FG=000000 SEL_BG=000080 SEL_FG=FFFFFF TXT_BG=FFFFFF TXT_FG=000000
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        fi
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            ACCENT_BG=${ACCENT_BG-$SEL_BG}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            HDR_BTN_BG=${HDR_BTN_BG-$BTN_BG}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            HDR_BTN_FG=${HDR_BTN_FG-$BTN_FG}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -114,6 +121,13 @@ INACTIVE_MENU_BG=$(mix ${MENU_BG} ${MENU_FG} 0.75)

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            INACTIVE_TXT_FG=$(mix ${TXT_FG} ${TXT_BG} 0.75)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            INACTIVE_TXT_BG=$(mix ${TXT_BG} ${BG} 0.60)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TERMINAL_COLOR4=${TERMINAL_COLOR4:-1E88E5}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TERMINAL_COLOR5=${TERMINAL_COLOR5:-E040FB}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TERMINAL_COLOR9=${TERMINAL_COLOR9:-DD2C00}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TERMINAL_COLOR10=${TERMINAL_COLOR10:-00C853}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TERMINAL_COLOR11=${TERMINAL_COLOR11:-FF6D00}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TERMINAL_COLOR12=${TERMINAL_COLOR12:-66BB6A}
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            light_folder_base_fallback="$(darker ${SEL_BG} -10)"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            medium_base_fallback="$(darker ${SEL_BG} 37)"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            dark_stroke_fallback="$(darker ${SEL_BG} 50)"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -200,6 +214,12 @@ for FILEPATH in "${PATHLIST[@]}"; do

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            		-e 's/%INACTIVE_TXT_BG%/#'"$INACTIVE_TXT_BG"'/g' \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            		-e 's/%INACTIVE_MENU_FG%/#'"$INACTIVE_MENU_FG"'/g' \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            		-e 's/%INACTIVE_MENU_BG%/#'"$INACTIVE_MENU_BG"'/g' \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		-e 's/%TERMINAL_COLOR4%/#'"$TERMINAL_COLOR4"'/g' \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		-e 's/%TERMINAL_COLOR5%/#'"$TERMINAL_COLOR5"'/g' \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		-e 's/%TERMINAL_COLOR9%/#'"$TERMINAL_COLOR9"'/g' \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		-e 's/%TERMINAL_COLOR10%/#'"$TERMINAL_COLOR10"'/g' \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		-e 's/%TERMINAL_COLOR11%/#'"$TERMINAL_COLOR11"'/g' \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        		-e 's/%TERMINAL_COLOR12%/#'"$TERMINAL_COLOR12"'/g' \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            		-e 's/%GNOME_SHELL_PANEL_OPACITY%/'"$GNOME_SHELL_PANEL_OPACITY"'/g' \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            		-e 's/%OUTPUT_THEME_NAME%/'"$OUTPUT_THEME_NAME"'/g' \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            		{} \; ;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/_sass/_colors.scss.template

@@ -57,7 +57,7 @@ $inverse_panel_bg_color: rgba($inverse_fg_color, 0.1);

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $solid_panel_bg_color:   if($titlebar == 'dark', %MENU_BG%, %MENU_BG%);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $opaque_panel_bg_color:  if($titlebar == 'dark', %MENU_BG%, mix(%MENU_BG%, %MENU_BG%, 50%)); // for Unity panel which cannot use translucent colors
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $tooltip_bg_color: $grey_800;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $tooltip_bg_color: %MENU_BG%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $gdm_bg_color: if($variant == 'light', %MENU_BG%, %MENU_BG2%);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -71,20 +71,20 @@ $alt_primary_color: %SEL_BG2%;

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $accent_color: %ACCENT_BG%;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $disabled_accent_color: rgba($accent_color, 0.5);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $link_color:         $primary_color;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $visited_link_color: $purple_A200;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $link_color:   %TERMINAL_COLOR4%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $visited_link_color: %TERMINAL_COLOR5%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $warning_color: $orange_A700;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $error_color:   $deep_orange_A700;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $success_color: $green_A700;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $warning_color: %TERMINAL_COLOR11%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $error_color: %TERMINAL_COLOR9%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $success_color: %TERMINAL_COLOR10%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $suggested_color:   $accent_color;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $destructive_color: $red_A200;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $destructive_color: $error_color;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $info_bg_color:     $green_400;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $question_bg_color: %SEL_BG%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $warning_bg_color:  $orange_400;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $error_bg_color:    $red_400;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $info_bg_color: %TERMINAL_COLOR12%;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $question_bg_color: $info_bg_color;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $warning_bg_color: $warning_color;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $error_bg_color: $error_color;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $border_color:             if($variant == 'light', rgba(%FG%, 0.12), rgba(%FG%, 0.26));
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $alt_border_color:         rgba(%FG%, 0.26); // for non-native GTK+ apps (e.g. Firefox and Chrome)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -95,7 +95,7 @@ $titlebar_indicator_color: if($titlebar == 'dark', currentColor, $primary_color)

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            // for Electron/Atom menu which cannot use translucent colors
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $opaque_fg_color:           if($variant == 'light', %FG%, %TXT_BG%);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $opaque_secondary_fg_color: if($variant == 'light', $grey_600, mix(%TXT_BG%, $base_color, percentage(0.7)));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $opaque_secondary_fg_color: if($variant == 'light', %FG%, mix(%TXT_BG%, $base_color, percentage(0.7)));
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $opaque_disabled_fg_color:  if($variant == 'light', %INACTIVE_FG%, mix(%TXT_BG%, $base_color, percentage(0.5)));
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $opaque_divider_color:      if($variant == 'light', %SEL_BG%, mix(%TXT_BG%, $base_color, percentage(0.12)));