A fork of the Materia GTK theme.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

sass: Make theme options boolean

roundabout,
created on Saturday, 6 March 2021, 23:33:28 (1615073608), received on Sunday, 11 May 2025, 13:22:57 (1746969777)
Author identity: nana-4 <hnmaigo@gmail.com>

65f505fa3a43399bf9c0bf407f5f3fd14396d66c

install.sh

@@ -69,14 +69,14 @@ install() {

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              local size="$4"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              if [[ "$color" == '' ]]; then
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_variant="light"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_topbar="dark"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_dark_theme="false"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_light_topbar="false"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              elif [[ "$color" == '-light' ]]; then
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_variant="light"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_topbar="light"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_dark_theme="false"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_light_topbar="true"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              elif [[ "$color" == '-dark' ]]; then
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_variant="dark"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_topbar="dark"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_dark_theme="true"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            local scss_light_topbar="false"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              fi
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              if [[ "$size" == '' ]]; then
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -109,8 +109,8 @@ install() {

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/cinnamon/assets"                                              "$THEME_DIR/cinnamon"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/cinnamon/thumbnail.png"                                       "$THEME_DIR/cinnamon"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              sed \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@variant@/$scss_variant/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@topbar@/$scss_topbar/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@dark_theme@/$scss_dark_theme/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@light_topbar@/$scss_light_topbar/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                -e "s/@compact@/$scss_compact/g" \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                "$SRC_DIR/cinnamon/cinnamon.scss.in" > "$SRC_DIR/cinnamon/cinnamon.$name.scss"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              sassc "${SASSC_OPT[@]}" "$SRC_DIR/cinnamon/cinnamon.$name.scss"               "$THEME_DIR/cinnamon/cinnamon.css"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -122,8 +122,8 @@ install() {

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/gnome-shell/README.md"                                        "$THEME_DIR/gnome-shell"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/gnome-shell/assets${ELSE_DARK:-}"                             "$THEME_DIR/gnome-shell/assets"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              sed \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@variant@/$scss_variant/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@topbar@/$scss_topbar/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@dark_theme@/$scss_dark_theme/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            -e "s/@light_topbar@/$scss_light_topbar/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                -e "s/@compact@/$scss_compact/g" \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                -e "s/@version@/$GS_VERSION/g" \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                "$SRC_DIR/gnome-shell/gnome-shell.scss.in" > "$SRC_DIR/gnome-shell/gnome-shell.$name.scss"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -147,8 +147,8 @@ install() {

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                for variant in "${GTK_VARIANTS[@]}"; do
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  sed \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                -e "s/@variant@/$scss_variant/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                -e "s/@topbar@/$scss_topbar/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                -e "s/@dark_theme@/$scss_dark_theme/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                -e "s/@light_topbar@/$scss_light_topbar/g" \
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    -e "s/@compact@/$scss_compact/g" \
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    "$SRC_DIR/gtk/gtk$variant.scss.in" > "$SRC_DIR/gtk/gtk$variant.gtk-$version.$name.scss"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  sassc "${SASSC_OPT[@]}" "$SRC_DIR/gtk/gtk$variant.gtk-$version.$name.scss" "$THEME_DIR/gtk-$version/gtk$variant.css"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

meson.build

@@ -17,16 +17,16 @@ foreach color: get_option('colors')

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              foreach size: get_option('sizes')
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                if color == 'default'
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  color_suffix = ''
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_variant = 'light'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_topbar = 'dark'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_dark_theme = 'false'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_light_topbar = 'false'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                elif color == 'light'
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  color_suffix = '-light'
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_variant = 'light'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_topbar = 'light'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_dark_theme = 'false'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_light_topbar = 'true'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                elif color == 'dark'
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  color_suffix = '-dark'
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_variant = 'dark'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_topbar = 'dark'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_dark_theme = 'true'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              scss_light_topbar = 'false'
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                endif
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                if size == 'default'
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -42,8 +42,8 @@ foreach color: get_option('colors')

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  'dir': theme_base_dir + color_suffix + size_suffix,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  'color': color_suffix,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  'size': size_suffix,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              'scss_variant': scss_variant,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              'scss_topbar': scss_topbar,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              'scss_dark_theme': scss_dark_theme,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              'scss_light_topbar': scss_light_topbar,
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                  'scss_compact': scss_compact,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              endforeach
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/_colors.scss

@@ -3,6 +3,9 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import 'color-palette';
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: false !default;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $light-topbar: false !default;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @function gtkalpha($color, $alpha) {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              @return unquote("alpha(#{$color}, #{$alpha})");
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -147,7 +150,7 @@ $on-titlebar: on($titlebar);

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $titlebar-indicator: currentcolor;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $variant == "dark" {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $dark-theme {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $background: $-dark-background;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $base: $-dark-surface-1dp;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $surface: $-dark-surface-8dp;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -174,7 +177,7 @@ $titlebar-indicator: currentcolor;

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $on-titlebar: on($titlebar);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $topbar == "light" {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $light-topbar {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $panel: $scrim;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $on-panel: on($panel);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/_colors.scss.template

@@ -3,6 +3,9 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import 'color-palette';
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: false !default;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $light-topbar: false !default;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @function gtkalpha($color, $alpha) {
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              @return unquote("alpha(#{$color}, #{$alpha})");
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -147,7 +150,7 @@ $on-titlebar: %HDR_FG%;

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $titlebar-indicator: currentcolor;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $variant == "dark" {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $dark-theme {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $background: if(tone(%BG%) == "dark", %BG%, $-dark-background);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $base: if(tone(%BG%) == "dark", %MATERIA_VIEW%, $-dark-surface-1dp);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $surface: if(tone(%BG%) == "dark", %MATERIA_SURFACE%, $-dark-surface-8dp);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -174,7 +177,7 @@ $titlebar-indicator: currentcolor;

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $on-titlebar: if(tone(%BG%) == "dark", %HDR_FG%, on($titlebar));
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $topbar == "light" {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $light-topbar {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $panel: $scrim;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              $on-panel: on($panel);
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/_variables.scss

@@ -1,14 +1,22 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        $asset-suffix: if($variant == 'dark', '-dark', '');
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: false !default;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $asset-suffix: if($dark-theme, "-dark", "");
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            //
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            // Sizes
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            //
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $container-padding: if($compact == 'false', 6px, 4px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $small-size: if($compact == 'false', 24px, 24px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $medium-size: if($compact == 'false', 36px, 32px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $large-size: if($compact == 'false', 48px, 40px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $container-padding: 6px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $small-size: 24px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $medium-size: 36px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $large-size: 48px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $compact {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $container-padding: 4px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $small-size: 24px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $medium-size: 32px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $large-size: 40px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $bar-size: 4px;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $menuitem-size: 28px;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/chrome/chrome-scrollbar-dark/scrollbars.scss

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

                                
                                
                                
                            
                                
                                    
                                        
                                        $variant: 'dark';

                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $topbar: 'dark';

                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: true;

                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            

                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import '../../colors';

                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import '../sass/scrollbars';

                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/chrome/chrome-scrollbar/scrollbars.scss

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

                                
                                
                                
                            
                                
                                    
                                        
                                        $variant: 'light';

                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $topbar: 'dark';

                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: false;

                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            

                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import '../../colors';

                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import '../sass/scrollbars';

                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/cinnamon/cinnamon.scss.in

@@ -1,6 +1,6 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        $variant: "@variant@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $topbar: "@topbar@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: "@compact@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: @dark_theme@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $light-topbar: @light_topbar@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: @compact@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import "../variables";
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import "../colors";
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/cinnamon/meson.build

@@ -27,8 +27,8 @@ foreach theme: themes

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              #
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cinnamon_scss_conf = configuration_data()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cinnamon_scss_conf.set('variant', theme['scss_variant'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cinnamon_scss_conf.set('topbar', theme['scss_topbar'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cinnamon_scss_conf.set('dark_theme', theme['scss_dark_theme'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cinnamon_scss_conf.set('light_topbar', theme['scss_light_topbar'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cinnamon_scss_conf.set('compact', theme['scss_compact'])
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              # Configure SCSS file
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gnome-shell/gnome-shell.scss.in

@@ -1,6 +1,6 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        $variant: "@variant@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $topbar: "@topbar@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: "@compact@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: @dark_theme@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $light-topbar: @light_topbar@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: @compact@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            $version: @version@;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import "../variables";
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gnome-shell/meson.build

@@ -102,8 +102,8 @@ foreach theme: themes

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              #
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              gnome_shell_scss_conf = configuration_data()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gnome_shell_scss_conf.set('variant', theme['scss_variant'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gnome_shell_scss_conf.set('topbar', theme['scss_topbar'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gnome_shell_scss_conf.set('dark_theme', theme['scss_dark_theme'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gnome_shell_scss_conf.set('light_topbar', theme['scss_light_topbar'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              gnome_shell_scss_conf.set('compact', theme['scss_compact'])
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              gnome_shell_scss_conf.set('version', gnome_shell_version)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gnome-shell/sass/_variables.scss

@@ -9,15 +9,25 @@ $font-family-large: Roboto, "M+ 1c", Cantarell, Sans-Serif;

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            // Font sizes
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            //
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $font-size: if($compact == 'false', 14px, 14px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $font-size-subheading: if($compact == 'false', 16px, 15px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $font-size: 14px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $font-size-subheading: 16px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $compact {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $font-size: 14px; // or should be 13px?
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $font-size-subheading: 15px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            //
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            // Override sizes
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            //
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $menuitem-size: if($compact == 'false', 32px, 28px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $panel-button-hpadding: if($compact == 'false', 12px, 8px);
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $menuitem-size: 32px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $panel-button-hpadding: 12px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        @if $compact {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $menuitem-size: 28px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          $panel-button-hpadding: 8px;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            //
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            // Override durations; since St does not support transition-timing-function
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk/gtk-dark.scss.in

@@ -1,6 +1,6 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        $variant: "dark";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $topbar: "dark";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: "@compact@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: true;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $light-topbar: false;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: @compact@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import "../variables";
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import "../colors";
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk/gtk.scss.in

@@ -1,6 +1,6 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        $variant: "@variant@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $topbar: "@topbar@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: "@compact@";
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $dark-theme: @dark_theme@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $light-topbar: @light_topbar@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $compact: @compact@;
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import "../variables";
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import "../colors";
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/gtk/meson.build

@@ -32,8 +32,8 @@ foreach theme: themes

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              endif
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              gtk_scss_conf = configuration_data()
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk_scss_conf.set('variant', theme['scss_variant'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk_scss_conf.set('topbar', theme['scss_topbar'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk_scss_conf.set('dark_theme', theme['scss_dark_theme'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          gtk_scss_conf.set('light_topbar', theme['scss_light_topbar'])
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              gtk_scss_conf.set('compact', theme['scss_compact'])
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              foreach gtk_version: gtk_versions