Add build script to configure for a XBoard.app for OS X
[xboard.git] / osxapp / OSX-theme / gtk-2.0 / gtkrc
diff --git a/osxapp/OSX-theme/gtk-2.0/gtkrc b/osxapp/OSX-theme/gtk-2.0/gtkrc
new file mode 100755 (executable)
index 0000000..fceba6e
--- /dev/null
@@ -0,0 +1,798 @@
+
+gtk-color-scheme = "base_color:#ffffff\nfg_color:#202020\ntooltip_fg_color:#ffffff\nselected_bg_color:#3b6eeb\nselected_fg_color:#ffffff\ntext_color:#202020\nbg_color:#ededed\ntooltip_bg_color:#000000\nlink_color:#0033ff"
+
+gtk_color_scheme       = "menu_gradient:#4455F6"
+
+gtk-auto-mnemonics     = 1
+
+gtk-button-images      = 0
+
+style "default" {
+       xthickness                                                                      = 1
+       ythickness                                                                      = 1
+
+       #######################
+       # Style Properties
+       #######################
+       GtkButton::child-displacement-x                         = 0
+       GtkButton::child-displacement-y                         = 0
+       GtkButton::default-border                                       = {0, 0, 0, 0}
+       GtkButton::image-spacing                                        = 4
+       GtkToolButton::icon-spacing                                     = 4
+
+       GtkCheckButton::indicator-size                          = 18
+       GtkRadioButton::indicator-size                          = 18
+
+       GtkEntry::honors-transparent-bg-hint            = 1
+       GtkEntry::invisible-char                                        = 0x2022
+       GtkEntry::progress-border                                       = {2, 2, 2, 2}
+    GtkEntry::state-hint                                       = 0
+
+       GtkProgressBar::min-vertical-bar-width          = 13
+       GtkProgressBar::min-horizontal-bar-height       = 13
+
+       GtkExpander::expander-size                                      = 14
+
+       GtkMenuBar::internal-padding                            = 0
+       GtkMenuBar::window-dragging                                     = 1
+       # GtkMenuBar::shadow-type                                       = GTK_SHADOW_NONE # En Unity se habilita esta linea
+
+       GtkMenu::horizontal-padding                                     = 0
+       GtkMenu::vertical-padding                                       = 0
+       GtkSeparatorMenuItem::horizontal-padding        = 7
+
+       GtkNotebook::tab-overlap                                        = 2             # Default = 2
+       GtkNotebook::tab-curvature                                      = 1             # Default = 1
+
+       GtkPaned::handle-size                                           = 6
+
+       GtkRange::trough-border                                         = 0
+       GtkRange::trough-side-details                                   = 0
+       GtkRange::slider-width                                          = 15
+       GtkRange::stepper-size                                          = 1
+
+       GtkScale::slider-length                                         = 14
+       GtkScale::slider-width                                          = 14
+       GtkScale::trough-side-details                           = 0
+
+       GtkScrollbar::has-backward-stepper                      = 0  
+       GtkScrollbar::has-forward-stepper                       = 1   # El maldito rollo de gtk2 y las scrollbars
+       GtkScrollbar::min-slider-length                         = 30
+       GtkScrollbar::slider-width                                      = 9
+       GtkScrollbar::trough-border                                     = 3
+       GtkScrollbar::activate-slider                           = 0
+       GtkScrollbar::trough-side-details                       = 0
+       GtkScrollbar::stepper-size                      = 1
+
+       GtkScrolledWindow::scrollbar-spacing            = 0
+       GtkScrolledWindow::scrollbars-within-bevel      = 1
+
+       GtkToolbar::internal-padding                            = 0
+       GtkToolbar::window-dragging                                     = 1
+
+       GtkTreeView::expander-size                                      = 7
+       GtkTreeView::odd_row_color                                      = "#F4F6FA"
+       # en eclipse afecta backcolor de "Quick Type Hierarchy (CTRL+T)"
+       # GtkTreeView::even_row_color                   = "#FFF"
+
+       GtkWidget::link-color                                           = @link_color
+    GtkWidget::focus-padding                                   = 0
+       WnckTasklist::fade-overlay-rect                         = 0
+
+    GtkWindow::resize-grip-height                      = 0 # Ocultar resize-grip
+    GtkWindow::resize-grip-width                       = 0
+
+       ####################
+       # Color Definitions
+       ####################
+       bg[NORMAL]          = @bg_color
+       bg[PRELIGHT]            = shade (1.02, @bg_color)
+       bg[SELECTED]            = @selected_bg_color
+       bg[INSENSITIVE]         = @bg_color
+       bg[ACTIVE]          = shade (0.9, @bg_color)
+
+       fg[NORMAL]          = @text_color
+       fg[PRELIGHT]            = @fg_color
+       fg[SELECTED]            = @selected_fg_color
+       fg[INSENSITIVE]         = darker (@bg_color)
+       fg[ACTIVE]          = @fg_color
+
+       text[NORMAL]            = @text_color
+       text[PRELIGHT]          = @text_color
+       text[SELECTED]          = @selected_fg_color
+       text[INSENSITIVE]       = darker (@bg_color)
+       text[ACTIVE]            = @selected_fg_color
+
+       base[NORMAL]            = @base_color
+       base[PRELIGHT]          = shade (0.95, @bg_color)
+       base[SELECTED]          = @selected_bg_color
+       base[INSENSITIVE]       = @bg_color
+       base[ACTIVE]            = shade (0.9, @selected_bg_color)
+
+       engine "murrine" {
+               animation                       = FALSE
+               arrowstyle                      = 1                     # Estilo flechas menu (triangulos)
+               colorize_scrollbar      = TRUE
+               contrast                        = 1.0
+               default_button_color    = shade (1.05, "#66a3e3")
+               expanderstyle           = 0                     # Treview expander (triangulo)
+               cellstyle                       = 0     
+               focusstyle                      = 0
+               glazestyle                      = 0 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
+               glowstyle                       = 4 # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
+               gradient_shades         = {1.00, 0.91, 0.92, 0.81}              
+               highlight_shade         = 1.0
+               lightborder_shade       = 1.0
+               lightborderstyle        = 1 # 0 = top side, 1 = all sides
+               listviewstyle           = 0 # 0 = nothing, 1 = dotted, 2 = line
+               menubaritemstyle        = 0 # 0 = menuitem look, 1 = button look
+               menubarstyle            = 1 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
+               menuitemstyle           = 1 # 0 = flat, 1 = glassy, 2 = striped
+               menustyle                   = 3 # 0 = no vertical menu stripe, 1 = display vertical menu stripe, 2 = faint? 3 = borderless
+               progressbarstyle        = 1
+               reliefstyle                     = 3 # 0 = flat, 1 = inset, 2 = shadow, 3 = shadow with gradient, 4 = stronger shadow with gradient
+               rgba                            = FALSE # alpha transparency
+               roundness                       = 3 # 0 = square
+               scrollbarstyle          = 0 # 0 = nothing
+               separatorstyle          = 0
+               shadow_shades           = {2.0, 1.0}
+               sliderstyle                 = 0 # 0 = nothing added
+               stepperstyle            = 1 # 0 = standard, 1 = integrated stepper handles, 2 = unknown
+               toolbarstyle            = 1 # 0 = flat, 1 = glassy, 2 = gradient
+               trough_shades           = {0.85, 1.0}
+       }
+}
+
+style "wide" {
+       xthickness      = 2
+       ythickness      = 2
+}
+
+style "wider" {
+       xthickness      = 3
+       ythickness      = 3
+}
+
+style "button" {
+    xthickness = 3
+    ythickness = 3
+    
+       bg[ACTIVE]                      = shade (1.15, "#5c8fe9")       # Pulsado #80B8EA
+    bg[NORMAL]                      = shade (0.93, "#FFF")
+    bg[PRELIGHT]                    = shade (0.95, "#FFF")
+       bg[SELECTED]                                = shade (1.25, "#5c8fe9")   # Default
+       bg[INSENSITIVE]                             = shade (0.88, "#FFF")
+
+       engine "murrine" {
+               border_shades           = {1.0, 0.90}
+               contrast                = 0.90
+               gradient_shades         = {1.25,1.02,1.01,1.05}         
+               lightborderstyle                = 1
+               lightborder_shade               = 1.1
+               textstyle               = 1
+       }
+}
+
+style "checkradio_label" {     
+       fg[ACTIVE]              = @text_color           # Forzar color texto en radiobutton-eclipse
+}
+
+style "checkbutton" {
+       engine "pixmap" {
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = NORMAL
+                       shadow = OUT
+                       overlay_file = "assets/l-checkbox-unchecked-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = PRELIGHT
+                       shadow = OUT
+                       overlay_file = "assets/l-checkbox-unchecked-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = ACTIVE
+                       shadow = OUT
+                       overlay_file = "assets/l-checkbox-unchecked-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = INSENSITIVE
+                       shadow = OUT
+                       overlay_file = "assets/l-checkbox-unchecked-insensitive-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = NORMAL
+                       shadow = IN
+                       overlay_file = "assets/l-checkbox-checked-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = PRELIGHT
+                       shadow = IN
+                       overlay_file = "assets/l-checkbox-checked-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = ACTIVE
+                       shadow = IN
+                       overlay_file = "assets/l-checkbox-checked-18.png"
+                       overlay_stretch = FALSE
+               }
+
+
+               image {
+                       function = CHECK
+                       recolorable = TRUE
+                       state = INSENSITIVE
+                       shadow = IN
+                       overlay_file = "assets/l-checkbox-checked-insensitive-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = FLAT_BOX
+                       recolorable = TRUE
+                       stretch = TRUE
+                       file = "assets/null.png"
+                       border = {2, 2, 2, 2}
+               }
+       }
+}
+
+style "entry" { # text
+       xthickness      = 3
+       ythickness      = 3
+
+       bg[SELECTED]    = mix (0.5, @selected_bg_color, @base_color)
+       fg[SELECTED]    = @text_color
+
+       engine "murrine" {
+               contrast        = 1.0           
+               roundness       = 3             
+               border_shades           = {1.45, 1.35}
+               focusstyle                              = 3
+        
+       }
+}
+
+style "expander" {
+       bg[NORMAL]              = "#FFF"
+       fg[NORMAL]              = shade (2.0, @text_color)
+       fg[PRELIGHT]            = shade (2.0, @text_color)
+
+       engine "murrine" {
+               contrast        = 1.2
+               gradient_shades = {1.0, 1.0, 1.0, 1.0}
+       }
+}
+
+style "frame_title" {
+       fg[NORMAL]      = lighter (@fg_color)
+}
+
+style "handle" {
+       engine "pixmap" {
+               image {
+                       function        = HANDLE
+                       overlay_file    = "assets/handle.png"
+                       overlay_border  = {0, 0, 0, 0}
+                       overlay_stretch = FALSE
+                       orientation     = HORIZONTAL
+                       file            = "assets/null.png"
+                       border          = {0, 0, 0, 0}
+                       stretch         = TRUE
+               }
+
+               image {
+                       function        = HANDLE
+                       overlay_file    = "assets/handle.png"
+                       overlay_border  = {0, 0, 0, 0}
+                       overlay_stretch = FALSE
+                       orientation     = VERTICAL
+                       file            = "assets/null.png"
+                       border          = {0, 0, 0, 0}
+                       stretch         = TRUE
+               }
+       }
+}
+class "GtkPaned"       style "handle"
+
+style "menubar" {
+    # Modificado
+       xthickness      = 3
+       ythickness      = 3
+
+    fg[NORMAL]          = shade (1.99, @fg_color)
+       bg[NORMAL]                      = shade (0.90, @bg_color)
+
+       engine "murrine" {
+               gradient_shades         = {1.00,0.96,0.96,0.89}
+        border_shades                  = {1.1, 0.9}
+               contrast                = 1.10
+               lightborderstyle                = 1
+       }
+}
+
+style "menu" {
+       xthickness      = 0
+       ythickness      = 0
+
+       bg[NORMAL]      = shade (1.05, "#ededed")
+
+       GtkMenuItem::arrow-scaling      = 0.5
+       
+       engine "murrine" {
+               gradient_shades         = {1.0, 1.0, 1.0, 1.0}
+               border_shades           = {1.1, 0.9}
+               roundness                       = 0 # 0 = squared
+        contrast            = 0.8
+       }
+}
+
+style "menu_item_white" {
+       xthickness      = 2
+       ythickness      = 3
+
+       fg[PRELIGHT]    = @selected_fg_color
+    bg[PRELIGHT]       = @menu_gradient
+    bg[SELECTED]       = @menu_gradient
+
+       engine "murrine" {
+        gradient_shades                = {1.20, 1.10, 1.10, 1.00}
+        roundness           = 1
+               border_shades           = {1.60, 1.0}
+        roundness           = 1
+        contrast            = 0.9
+       }
+}
+
+style "menu_item_black" {
+       xthickness      = 2
+       ythickness      = 3
+
+       fg[PRELIGHT]    = @selected_fg_color
+    bg[PRELIGHT]      = shade (0.94, "#3C3CF0")
+    bg[SELECTED]      = shade (0.94, "#3C3CF0")
+
+       engine "murrine" {
+        gradient_shades                = {1.30, 1.15, 1.15, 1.00}
+        roundness           = 1
+        #contrast            = 0.0
+       }
+}
+
+style "notebook" { 
+    xthickness = 2  
+       ythickness      = 2
+
+       bg[NORMAL]                              = shade (0.96, @bg_color)       # selected tab entire
+       bg[ACTIVE]                              = shade (1.12, @bg_color)       # unselected tab
+
+       engine "murrine" {
+               gradient_shades         = {1.20,0.98,0.92,0.65}
+               contrast                        = 0.75
+               roundness                       = 3 
+       }
+
+}
+
+style "progressbar" {
+       xthickness      = 0
+       ythickness      = 0
+
+       fg[PRELIGHT]    = @selected_fg_color
+       #bg[SELECTED]           = "#7088CA"
+       bg[SELECTED]            =shade (0.90, "#80B8EA")
+
+       engine "murrine" {
+               gradient_shades         = {1.30, 1.15, 1.15, 1.0}
+               roundness                       = 4
+       }
+}
+
+style "radiobutton" {
+       engine "pixmap" {
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = NORMAL
+                       shadow = OUT
+                       overlay_file = "assets/l-radio-unselected-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = PRELIGHT
+                       shadow = OUT
+                       overlay_file = "assets/l-radio-unselected-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = ACTIVE
+                       shadow = OUT
+                       overlay_file = "assets/l-radio-unselected-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = INSENSITIVE
+                       shadow = OUT
+                       overlay_file = "assets/l-radio-unselected-insensitive-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = NORMAL
+                       shadow = IN
+                       overlay_file = "assets/l-radio-selected-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = PRELIGHT
+                       shadow = IN
+                       overlay_file = "assets/l-radio-selected-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = ACTIVE
+                       shadow = IN
+                       overlay_file = "assets/l-radio-selected-18.png"
+                       overlay_stretch = FALSE
+               }
+
+
+               image {
+                       function = OPTION
+                       recolorable = TRUE
+                       state = INSENSITIVE
+                       shadow = IN
+                       overlay_file = "assets/l-radio-selected-insensitive-18.png"
+                       overlay_stretch = FALSE
+               }
+
+               image {
+                       function = FLAT_BOX
+                       recolorable = TRUE
+                       stretch = TRUE
+                       file = "assets/null.png"
+                       border = {2, 2, 2, 2}
+               }
+       }
+}
+
+style "scale" { # slider
+    # Modificado
+       xthickness      = 2
+       ythickness      = 2
+
+       bg[NORMAL]              = shade (0.90, "#8EBDDB")
+       bg[SELECTED]            = shade (0.90, "#8EBDDB")
+       bg[PRELIGHT]            = shade (0.90, "#8EBDDB")
+        bg[INSENSITIVE]         = shade (0.90, @bg_color)
+   
+       bg[ACTIVE]      = shade (0.95, @bg_color)
+
+       engine "murrine" {              
+        #gradient_shades               = {0.65,1.00,1.00,1.35}
+               gradient_shades         = {0.95,1.05,1.10,1.30}
+               glowstyle                       = 2 # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
+               glow_shade          = 1.99
+               roundness                   = 18
+               border_shades                   = {0.7, 1.2}
+               contrast                            = 0.6
+               lightborderstyle                = 1             
+               trough_shades                   = {0.9, 1.1}
+       }
+}
+
+style "scrollbar" {
+       bg[SELECTED]                = shade (0.74, @base_color)
+       bg[ACTIVE]                  = shade (0.96, @base_color)
+
+    # color flechas (stepper)  
+    fg[NORMAL]          = shade (1.00, @base_color)
+    fg[PRELIGHT]       = shade (1.00, @base_color)
+    fg[ACTIVE]         = shade (1.00, @base_color)
+    fg[SELECTED]        = shade (1.00, @base_color)
+    fg[INSENSITIVE]     = shade (1.00, @base_color)
+       
+       engine "murrine" {
+        roundness               = 8
+        gradient_shades                        = {1.0,1.0,1.0,1.0}
+        highlight_shade                        = 1.0
+        glow_shade              = 1.0
+        #reliefstyle             = 0
+        prelight_shade          = .75
+        gradient_colors         = FALSE
+        lightborder_shade       = 1.0
+        lightborderstyle        = 0
+        trough_shades           = {1.06, 1.11}
+        border_shades           = {1.24, 1.24}
+        contrast                = 0.00
+       }
+}
+
+style "overlay_scrollbar"
+{
+       bg[SELECTED]                            = shade (1.0, @selected_bg_color)
+       bg[INSENSITIVE]                         = shade (0.85, @bg_color)
+       bg[ACTIVE]                                      = shade (0.6, @bg_color)
+}
+
+style "spinbutton" = "button" { # input/stepper 
+       #bg[NORMAL]             = "#FFF"
+       engine "murrine" {
+               contrast                        = 0.90
+               lightborderstyle        = 0
+               border_shades       = {1.1, 0.9}
+        lightborder_shade      = 1.30
+       }
+}
+
+style "toolbar" {
+       
+       engine "murrine" {
+               contrast                = 0.80
+               lightborder_shade               = 1.00       
+               gradient_shades         = {0.98,1.00,1.00,1.02}        
+               # gradient_shades       = {1.00,0.98,0.98,0.96}  # En Unity
+       }
+}
+
+style "toolbar_button" {
+    xthickness = 3
+    ythickness = 3
+
+    bg[PRELIGHT]                    = shade (1.05, "#BBCCEE")
+    bg[ACTIVE]                      = shade (1.00, "#BBCCEE")  # Pulsado
+       bg[SELECTED]                                = shade (0.95, "#BBCCEE")   # Default enter
+       bg[INSENSITIVE]                             = shade (0.95, "#FFF")
+
+       engine "murrine" {
+               border_shades           = {1.00, 1.00}
+               contrast                = 0.8
+               gradient_shades         = {1.00,0.96,0.96,0.92}
+               lightborderstyle                = 1
+               textstyle               = 1
+       }
+
+}
+
+style "tooltips" {
+       xthickness      = 8
+       ythickness      = 4
+
+       bg[NORMAL]      = @tooltip_bg_color
+       fg[NORMAL]      = @tooltip_fg_color
+
+       GtkWidget::new-tooltip-style    = 0
+
+       engine "murrine" {
+               border_colors   = { "#343434", "#343434" }
+       }
+}
+
+style "treeview" {
+
+       engine "murrine" {
+               gradient_shades         = {1.0, 1.0, 1.0, 1.0}
+        separatorstyle = 0
+       }
+}
+
+style "treeview_header" = "button" {
+       ythickness      = 1
+    GtkWidget  ::focus-padding         = 0
+
+    bg[ACTIVE]                      = shade (1.00, "#80B8EA")  # Pulsado
+    bg[NORMAL]                      = shade (0.96, "#FFF")
+    bg[PRELIGHT]                    = shade (1.05, "#80B8EA")
+       bg[SELECTED]                                = shade (0.95, "#80B8EA")   # Default enter
+       bg[INSENSITIVE]                             = shade (1.00, "#FFF")
+
+       engine "murrine" {
+               border_shades           = {1.2, 1.05}
+               contrast                = 1.22
+               gradient_shades         = {1.25,1.02,0.99,1.15}
+
+               lightborderstyle                = 1
+               textstyle               = 1
+       }
+}
+
+style "checkradio" = "button" {
+    xthickness = 3
+    ythickness = 3
+       GtkRadioButton::indicator-size                          = 16
+       GtkCheckButton::indicator-size                          = 16
+
+       base[NORMAL]                                    = shade (0.95, @base_color)                     # radiocheck normal
+       bg[SELECTED]                                = shade (1.25, "#5c8fe9")                   # radiocheck color checked
+
+       text[NORMAL]                    = shade (0.50, @selected_bg_color)      # indicador normal    
+       text[PRELIGHT]                  = shade (0.35, @selected_bg_color)      # indicador hover
+       text[ACTIVE]                                    = shade (0.15, @selected_bg_color)      # indicador click
+
+    bg[ACTIVE]                      = shade (0.80, @bg_color)  # button option "#80B8EA"
+
+       engine "murrine" {
+               reliefstyle = 3
+       }
+}
+
+###############################################################################
+# The following part of the gtkrc applies the different styles to the widgets.
+###############################################################################
+
+# The default style is applied to every widget
+class "GtkWidget"                              style "default"
+class "GtkSeparator"                   style "wide"
+class "GtkFrame"                               style "wide"
+class "GtkCalendar"                            style "wide"
+class "GtkEntry"                               style "entry"
+
+
+class "GtkSpinButton"                  style "spinbutton"
+class "GtkScale"                               style "scale"
+class "GtkVScale"                              style "scale"
+class "GtkHScale"                              style "scale"
+
+class "GtkScrollbar"                   style "scrollbar"
+#widget "*ToggleSwitch*"               style "toolbar_button"
+widget_class "*<GtkToolbar>" style "toolbar"
+widget_class "*<GtkHandleBox>" style "toolbar"
+
+# Overlay scrollbar
+widget_class "*<OsScrollbar>"  style "overlay_scrollbar"
+widget_class "*<OsThumb>"              style "overlay_scrollbar"
+# General matching follows. The order is choosen so that the right styles override
+# each other. EG. progressbar needs to be more important than the menu match.
+widget_class "*<GtkButton>"                        style "button"
+widget_class "*<GtkNotebook>"                  style "notebook"
+
+widget_class "*<GtkSpinButton>.*.<GtkEntry>" style "entry"
+widget_class "*<GtkMenuBar>*"                  style "menubar"
+widget_class "*<GtkMenu>*"                         style "menu"
+widget_class "*<GtkMenuItem>*"                 style "menu_item_white"
+#widget_class "*<GtkMenuBar>.<GtkMenuItem>*"   style "menu_item_white"
+#widget_class "*<GtkMenuBar>.<GtkMenuItem>*"   style "menu_item_black"
+
+widget_class "*<GtkToolbar>.*.<GtkButton>*" style:highest  "toolbar_button"
+
+
+widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
+widget_class "*.<GtkTreeView>*"                        style "treeview"
+
+class "*GtkExpander*"                                          style "expander"
+
+widget_class "*<GtkProgress>"                  style "progressbar"
+
+# Treeview headers (and similar stock GTK+ widgets)
+widget_class "*.<GtkTreeView>.<GtkButton>"     style "treeview_header"
+widget_class "*.<GtkCTree>.<GtkButton>"                style "treeview_header"
+widget_class "*.<GtkList>.<GtkButton>"         style "treeview_header"
+widget_class "*.<GtkCList>.<GtkButton>"                style "treeview_header"
+
+# The window of the tooltip is called "gtk-tooltip"
+widget "gtk-tooltip*"                          style "tooltips"
+
+widget_class "*<GtkCheckButton>*"                              style             "checkbutton"
+widget_class "*<GtkDialog>*<GtkCheckButton>*"  style:highest "checkbutton"
+widget_class "*<GtkFrame>*<GtkCheckButton>*"   style:highest "checkbutton"
+widget_class "*<GtkNotebook>*<GtkCheckButton>*" style:highest "checkbutton"
+widget_class "*<GtkCheckButton>*<GtkLabel>"            style:highest "checkradio_label"
+
+widget_class "*<GtkRadioButton>*"                              style             "checkradio"
+widget_class "*<GtkDialog>*<GtkRadioButton>*"  style:highest "radiobutton"
+widget_class "*<GtkFrame>*<GtkRadioButton>*"   style:highest "radiobutton"
+widget_class "*<GtkNotebook>*<GtkRadioButton>*" style:highest "radiobutton"
+widget_class "*<GtkRadioButton>*<GtkLabel>"            style:highest "checkradio_label"
+
+widget "MozillaGtkWidget*GtkCheck*"                            style:highest "checkbutton"
+widget "MozillaGtkWidget*GtkRadio*"                            style:highest "radiobutton"
+
+##########################################################################
+# Following are special cases and workarounds for issues in applications.
+##########################################################################
+# For Google Chrome/Chromium integration.
+style "chrome-gtk-frame" {
+    ChromeGtkFrame::frame-gradient-size                        = 120
+    ChromeGtkFrame::frame-color                                        = shade (0.46, @bg_color)
+    ChromeGtkFrame::inactive-frame-color                       = shade (0.46, @bg_color)
+    ChromeGtkFrame::frame-gradient-color                   = shade (0.96, @bg_color)
+    ChromeGtkFrame::inactive-frame-gradient-color      = shade (0.96, @bg_color)
+    ChromeGtkFrame::scrollbar-trough-color                     = shade (1.00, @bg_color)
+    ChromeGtkFrame::scrollbar-slider-prelight-color = shade (0.85, @bg_color)
+    ChromeGtkFrame::scrollbar-slider-normal-color      = shade (0.78, @bg_color)
+}
+class "ChromeGtkFrame" style "chrome-gtk-frame"
+
+# For places where the text color is used instead of the fg color.
+style "text_is_fg_color_workaround" {
+       text[NORMAL]            = @fg_color
+       text[PRELIGHT]          = @fg_color
+       text[SELECTED]          = @selected_fg_color
+       text[ACTIVE]            = @fg_color
+       text[INSENSITIVE]       = darker (@bg_color)
+}
+widget_class "*.<GtkComboBox>.<GtkCellView>"   style "text_is_fg_color_workaround"
+
+# For menus where the text color is used instead of the fg color.
+style "menuitem_text_is_fg_color_workaround" {
+       text[NORMAL]            = @fg_color
+       text[PRELIGHT]          = @selected_fg_color
+       text[SELECTED]          = @selected_fg_color
+       text[ACTIVE]            = @fg_color
+       text[INSENSITIVE]       = darker (@bg_color)
+}
+widget "*.gtk-combobox-popup-menu.*"   style "menuitem_text_is_fg_color_workaround"
+
+# For places where the fg color is used instead of the text color.
+style "fg_is_text_color_workaround" {
+       fg[NORMAL]              = @text_color
+       fg[PRELIGHT]    = @text_color
+       fg[SELECTED]    = @selected_fg_color
+       fg[ACTIVE]              = @selected_fg_color
+       fg[INSENSITIVE] = darker (@bg_color)
+}
+widget_class "*<GtkListItem>*"         style "fg_is_text_color_workaround"
+widget_class "*<GtkCList>"                 style "fg_is_text_color_workaround"
+widget_class "*<EelEditableLabel>"     style "fg_is_text_color_workaround"
+
+# For gvim scrollbars.
+style "vim-scrollbar" = "scrollbar" {
+       GtkScrollbar    ::slider_width          = 16
+       GtkScrollbar    ::stepper_size          = 16
+
+       engine "pixmap" {
+               image {
+                       function        = BOX
+                       orientation     = VERTICAL
+                       file            = "assets/scroll-background.png"
+               }
+       }
+}
+widget "vim-main-window.*Scrollbar*"   style "vim-scrollbar"
+
+# For Eclipse (swt) toolbars.
+widget "*swt*toolbar*"                 style "default"
+
+