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

Add support for Plank theme (close #206)

roundabout,
created on Friday, 11 January 2019, 09:41:07 (1547199667), received on Sunday, 11 May 2025, 13:22:32 (1746969752)
Author identity: nana-4 <hnmaigo@gmail.com>

6386a791691e15ae0307836d134a05e91dd8ecbf

TODO.md

@@ -11,7 +11,6 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            - [Xfce theme](../../issues/60)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            - [Pantheon theme](../../issues/69)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            - [Openbox theme](../../issues/254)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        - [Plank theme](../../issues/206)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            - [GtkSourceView theme](../../issues/150)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            - [Color scheme for GNOME Terminal](../../issues/157)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            - [Cursor theme](../../issues/156) (`low priority`)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

install.sh

@@ -108,6 +108,9 @@ install() {

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/metacity-1/"{assets,metacity-theme-3.xml}                     "$THEME_DIR/metacity-1"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/metacity-1/metacity-theme-2${ELSE_LIGHT:-}.xml"               "$THEME_DIR/metacity-1/metacity-theme-2.xml"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          mkdir -p                                                                      "$THEME_DIR/plank"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          cp -r "$SRC_DIR/plank/dock.theme"                                             "$THEME_DIR/plank"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              mkdir -p                                                                      "$THEME_DIR/unity"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/unity/"{*.svg,*.png,dash-widgets.json}                        "$THEME_DIR/unity"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              cp -r "$SRC_DIR/unity/assets${ELSE_LIGHT:-}"                                  "$THEME_DIR/unity/assets"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

src/plank/dock.theme

@@ -0,0 +1,64 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        #This file based on:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #https://git.launchpad.net/plank/tree/data/themes/Default/dock.theme
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        [PlankTheme]
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The roundness of the top corners.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TopRoundness=4
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The roundness of the bottom corners.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        BottomRoundness=0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The thickness (in pixels) of lines drawn.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        LineWidth=0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The color (RGBA) of the outer stroke.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        OuterStrokeColor=0;;0;;0;;0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The starting color (RGBA) of the fill gradient.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        FillStartColor=0;;0;;0;;153
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The ending color (RGBA) of the fill gradient.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        FillEndColor=0;;0;;0;;153
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The color (RGBA) of the inner stroke.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        InnerStrokeColor=0;;0;;0;;0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        [PlankDockTheme]
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The padding on the left/right dock edges, in tenths of a percent of IconSize.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        HorizPadding=1
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The padding on the top dock edge, in tenths of a percent of IconSize.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        TopPadding=2
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The padding on the bottom dock edge, in tenths of a percent of IconSize.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        BottomPadding=1
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The padding between items on the dock, in tenths of a percent of IconSize.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ItemPadding=2
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The size of item indicators, in tenths of a percent of IconSize.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        IndicatorSize=5
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The size of the icon-shadow behind every item, in tenths of a percent of IconSize.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        IconShadowSize=0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The height (in percent of IconSize) to bounce an icon when the application sets urgent.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        UrgentBounceHeight=1.6666666666666667
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The height (in percent of IconSize) to bounce an icon when launching an application.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        LaunchBounceHeight=0.625
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The opacity value (0 to 1) to fade the dock to when hiding it.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        FadeOpacity=1
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The amount of time (in ms) for click animations.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ClickTime=0
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The amount of time (in ms) to bounce an urgent icon.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        UrgentBounceTime=600
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The amount of time (in ms) to bounce an icon when launching an application.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        LaunchBounceTime=600
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The amount of time (in ms) for active window indicator animations.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ActiveTime=150
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The amount of time (in ms) to slide icons into/out of the dock.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        SlideTime=300
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The time (in ms) to fade the dock in/out on a hide (if FadeOpacity is < 1).
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        FadeTime=250
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The time (in ms) to slide the dock in/out on a hide (if FadeOpacity is 1).
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        HideTime=250
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The size of the urgent glow (shown when dock is hidden), in tenths of a percent of IconSize.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        GlowSize=30
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The total time (in ms) to show the hidden-dock urgent glow.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        GlowTime=10000
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The time (in ms) of each pulse of the hidden-dock urgent glow.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        GlowPulseTime=2000
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The hue-shift (-180 to 180) of the urgent indicator color.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        UrgentHueShift=150
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #The time (in ms) to move an item to its new position or its addition/removal to/from the dock.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        ItemMoveTime=450
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        #Whether background and icons will unhide/hide with different speeds. The top-border of both will leave/hit the screen-edge at the same time.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        CascadeHide=true
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

test.sh

@@ -82,6 +82,9 @@ test() {

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              ln -s  "$SRC_DIR/metacity-1/"{assets,metacity-theme-3.xml}                    "$THEME_DIR/metacity-1"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              ln -sT "$SRC_DIR/metacity-1/metacity-theme-2${ELSE_LIGHT:-}.xml"              "$THEME_DIR/metacity-1/metacity-theme-2.xml"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          mkdir -p                                                                      "$THEME_DIR/plank"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          ln -s  "$SRC_DIR/plank/dock.theme"                                            "$THEME_DIR/plank"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              mkdir -p                                                                      "$THEME_DIR/unity"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              ln -s  "$SRC_DIR/unity/"{*.svg,*.png,dash-widgets.json}                       "$THEME_DIR/unity"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                              ln -sT "$SRC_DIR/unity/assets${ELSE_LIGHT:-}"                                 "$THEME_DIR/unity/assets"