############################################################################
#
# Gray GIMP Theme
#
# Version 0.1.6.1
#
# Copyright 2015-2016, Benoit Touchette
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
############################################################################
#
# Special thanks to all the theme creators, specifically:
#
# horst3180 for his excellent Ceti-2 theme.
# Nuclear Napalm, android272, Medhi Abhollahi for their GIMP themes.
#
# Y'all inspired me to create these themes for GIMP.
#
############################################################################
#
# arrows-(down, left, right, up)*.png from Ceti-2 theme, horst3180
# frame-gap-*.png from Ceti-2 theme, horst3180
# gap information from new CS6 II theme, Medhi Abhollahi
#
############################################################################
#
# KDE:
#
# * For this theme to work under KDE users will need to disable either
#   "Apply colors to non-QT applications" or "Apply KDE Colours to Non-KDE
#   apps" depending on the version.
#
# Miscellaneous:
#
# * Fonts can be overridden by uncommenting the two font lines below
#
# * Uncomment the gtk-primary-button-warps-slider line to enable warping
#   scroll bars.
#
############################################################################

gtk-menu-images = 1
gtk-button-images = 0
gtk-auto-mnemonics = 1
#gtk-primary-button-warps-slider = 1
gtk-toolbar-style = GTK_TOOLBAR_ICONS
gtk-application-prefer-dark-theme = true

#gtk-font-name = "Sans 11"

# KDE hack to match gtk/gnome defaults
gtk-button-images = 0

style "sogg-default-style"
{
#  font_name = "Sans 11"

  color["clr1"] = "#343434"
  color["clr2"] = "#222222"
  color["clr3"] = "#3E3E3E"
  color["clr4"] = "#777777"
  color["clr5"] = "#888888"
  color["clr6"] = "#999999"
  color["clr7"] = "#3b3b3b"
  color["clr8"] = "#DDDDDD"
  color["clr9"] = "#B2B2B2"
  color["clr10"] = "#000000"
  color["link_color"]         = "#71a8f7"
  color["visited_link_color"] = "#43bfe1"

  fg[NORMAL] = @clr2
  fg[PRELIGHT] = @clr10
  fg[ACTIVE] = @clr3
  fg[SELECTED] = @clr2
  fg[INSENSITIVE] = @clr3

  bg[NORMAL] = @clr4
  bg[PRELIGHT] = @clr4
  bg[ACTIVE] = @clr4
  bg[SELECTED] = @clr5
  bg[INSENSITIVE] = @clr5

  base[NORMAL] = @clr6
  base[PRELIGHT] = @clr8
  base[ACTIVE] = @clr2
  base[SELECTED] = @clr2
  base[INSENSITIVE] = @clr8

  text[NORMAL] = @clr1
  text[PRELIGHT] = @clr10
  text[ACTIVE] = @clr8
  text[SELECTED] = @clr8
  text[INSENSITIVE] = @clr9

  GtkOptionMenu::indicator-size = { 5, 11 }
  GtkOptionMenu::indicator-spacing = { 4, 3, 1, 1 }

  GtkScrollbar::has_secondary_backward_stepper = 0
  GtkScrollbar::has_secondary_forward_stepper = 0

  GtkPaned::handle-size = 2
  GimpDockWindow::default-height = 240
  GimpDock::font-scale = 0.8333
  GimpMenuDock::minimal-width = 200
  GimpDockWindow::menu-preview-size = small-toolbar
  GimpToolPalette::tool-icon-size = large-toolbar
  GimpToolPalette::button-relief = none
  GimpDockbook::tab-border = 0
  GimpDockbook::tab-icon-size = menu
  GimpColorNotebook::tab-border = 0
  GimpColorNotebook::tab-icon-size = menu
  GimpDeviceEditor::handle-size = 12
  GimpDockable::content-border = 1
  GimpEditor::content-spacing = 1
  GimpEditor::button-spacing = 1
  GimpEditor::button-icon-size = menu
  GimpDataEditor::minimal-height = 64
  GimpFrame::label-spacing = 2
  GtkDialog::content-area-border = 0
  GtkDialog::button-spacing = 6
  GtkDialog::action-area-border = 12
  GimpUnitComboBox::appears-as-list = 0
  GtkComboBoxEntry::appears-as-list = 0
  GtkComboBoxText::appears-as-list = 0
  GtkComboBox::appears-as-list = 0

  GnomeHRef ::link_color         = @link_color
  GtkHTML   ::link-color         = @link_color
  GtkIMHtmlr::hyperlink-color    = @link_color
  GtkIMHtml ::hyperlink-color    = @link_color
  GtkWidget ::link-color         = @link_color
  GtkWidget ::visited-link-color = @visited_link_color

  #
  # To adjust to default button spacing:
  #
  # Set focus-padding to 2
  # Set focus-line to 1
  #

  GtkButton::focus-line_width = 1
  GtkButton::focus-padding = 0

  GtkRange::trough-border = 0
  GtkRange::slider-width = 15
  GtkRange::stepper-size = 0

  GtkScale::slider-length = 14
  GtkScale::slider-width  = 14
  GtkScale::trough-border = 0
  GtkScale::trough-side-details = 1

  GtkVScale::slider_length = 14
  GtkVScale::slider_width = 14

  GtkHScale::slider_length = 14
  GtkHScale::slider_width = 14

  GtkScrollbar::trough-border = 0
  GtkScrollbar::activate-slider = 1
  GtkScrollbar::has-backward-stepper = 0
  GtkScrollbar::has-forward-stepper = 0
  GtkScrollbar::min-slider-length = 32
  GtkScrolledWindow::scrollbar-spacing = 0
  GtkScrolledWindow::scrollbars-within-bevel = 0

  GtkTreeView::expander-size = 13
  GtkExpander::expander-size = 13

  GtkStatusbar::shadow_type = GTK_SHADOW_NONE
  GtkSpinButton::shadow_type = GTK_SHADOW_NONE
  GtkMenuBar::shadow-type = GTK_SHADOW_NONE
  GtkToolbar::shadow-type = GTK_SHADOW_NONE
  GtkList::shadow_type = GTK_SHADOW_NONE
  GtkCList::shadow_type = GTK_SHADOW_NONE
  GtkComboBox::shadow_type = GTK_SHADOW_NONE
  GtkComboBoxEntry::shadow_type = GTK_SHADOW_NONE
  GtkScrolledWindow::shadow-type = GTK_SHADOW_NONE
  GtkVScale::shadow_type = GTK_SHADOW_NONE
  GtkHScale::shadow_type = GTK_SHADOW_NONE
  GtkMenuItem::horizontal-padding = 4

  GtkWidget::tooltip-radius = 2
  GtkWidget::tooltip-alpha = 235
  GtkWidget::new-tooltip-style = 1

  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0

  engine "pixmap"
    {
      image
        {
          function = EXPANDER
          expander_style = COLLAPSED
          file = "ui/plus.png"
        }

      image
        {
          function = EXPANDER
          expander_style = EXPANDED
          file = "ui/minus.png"
        }

      image
        {
          function = EXPANDER
          expander_style = SEMI_EXPANDED
          file = "ui/minus.png"
        }

      image
        {
          function = EXPANDER
          expander_style = SEMI_COLLAPSED
          file = "ui/plus.png"
        }

      image
        {
          function = SHADOW_GAP
          file = "ui/shadow-null.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
        }

      image
        {
          function = RESIZE_GRIP
          state = NORMAL
          detail = "statusbar"
          overlay_file = "ui/null.png"
          overlay_border = { 0,0,0,0 }
          overlay_stretch = FALSE
        }

      image
        {
          function = HLINE
          recolorable = TRUE
          file = "ui/gimp-line-h.png"
          border = { 0, 0, 1, 1 }
          stretch = TRUE
        }

      image
        {
          function = VLINE
          recolorable = TRUE
          file = "ui/gimp-line-v.png"
          border = { 1, 0, 1, 1 }
          stretch = TRUE
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          overlay_file = "ui/gimp-arrow-up.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
          arrow_direction = UP
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          overlay_file = "ui/gimp-arrow-down.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
          arrow_direction = DOWN
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          overlay_file = "ui/gimp-arrow-left.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
          arrow_direction = LEFT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          overlay_file = "ui/gimp-arrow-right.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
          arrow_direction = RIGHT
        }

      image
        {
          function = HANDLE
          overlay_file = "ui/gimp-handle-h.png"
          overlay_stretch = FALSE
          orientation = HORIZONTAL
        }

      image
        {
          function = HANDLE
          overlay_file = "ui/gimp-handle-v.png"
          overlay_stretch = FALSE
          orientation = VERTICAL
        }
    }
}

class "GtkWidget" style "sogg-default-style"
class "GtkMenuItem" style "sogg-default-style"

###########################################################

style "sogg-tool-dialog-style" = "sogg-default-style"
{
  GtkDialog::action-area-border = 6
}

class "GimpToolDialog" style "sogg-tool-dialog-style"

###########################################################

style "sogg-grid-view-style" = "sogg-default-style"
{
  bg[NORMAL] = { 1.0, 1.0, 1.0 }
}

widget "*GimpContainerGridView*GtkViewport*" style "sogg-grid-view-style"

###########################################################

style "sogg-dockable-style" = "sogg-default-style"
{
  GimpFrame::label-bold = 0
  GtkButton::focus-line_width = 1
  GtkButton::focus-padding = 0
}

widget "*GimpDockable.*" style "sogg-dockable-style"

###########################################################

style "sogg-display-style" = "sogg-default-style"
{
  GimpRuler::font-scale = 0.6444
  GimpUnitComboBox::label-scale = 0.8333
  GimpScaleComboBox::label-scale = 0.8333
  GtkComboBox::arrow-size = 8
  GtkButton::inner-border = { 0, 0, 0, 0 }
  GtkButton::focus-line-width = 0
  GtkButton::focus-padding = 0
}

widget "*GimpDisplayShell.*" style "sogg-display-style"

###########################################################

style "sogg-overlay-style" = "gimp-display-style"
{
  GtkButton::focus-line_width = 1
}

widget_class "*<GimpOverlayFrame>*" style "sogg-overlay-style"

###########################################################

style "sogg-gtkbutton-style" = "sogg-default-style"
{
  xthickness = 3
  ythickness = 3

  engine "pixmap"
    {
      image
        {
          function = BOX
          detail = "buttondefault"
          recolorable = TRUE
          file = "ui/gimp-button-default.png"
          border = { 8, 8, 8, 8 }
          stretch = TRUE
        }

      image
        {
          function = BOX
          state = PRELIGHT
          recolorable = TRUE
          file = "ui/gimp-button-prelight.png"
          border = { 8, 8, 8, 8}
          stretch = TRUE
        }

      image
        {
          function = BOX
          state = ACTIVE
          file = "ui/gimp-button-pressed.png"
          border = { 8, 8, 8, 8 }
          stretch = TRUE
        }

       image
        {
          function = BOX
          state = INSENSITIVE
          file = "ui/gimp-button-insensitive.png"
          border = { 8, 8, 8, 8  }
          stretch = TRUE
        }

       image
        {
          function = BOX
          file = "ui/gimp-button-normal.png"
          border = { 8, 8, 8, 8 }
          stretch = TRUE
        }
    }
}

class "GtkButton" style "sogg-gtkbutton-style"

###########################################################

style "sogg-tooltips-style" = "sogg-default-style"
{
  xthickness = 4
  ythickness = 4

  bg[NORMAL] = "#999999"
  bg[SELECTED] = "#CBCBCB"
  fg[NORMAL] = "#222222"
}

widget "gtk-tooltip*" style "sogg-tooltips-style"

###########################################################

style "sogg-treeview" = "sogg-default-style"
{
  xthickness = 2
  ythickness = 2

  GtkTreeView::odd_row_color = "#BDBDBD"
  GtkTreeView::even_row_color = "#BDBDBD"

  #
  # set custom text color here
  #

  #text[NORMAL] = "#0F0"
  #text[PRELIGHT] = "#0F0"
  #text[INSENSITIVE] = "#0F0"
  text[ACTIVE] = "#222"
  text[SELECTED] = "#222"
  base[SELECTED] = "#DDD"

  engine  "pixmap"
    {
      image
        {
          function = SHADOW
          file = "ui/treeview-item-prelight.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
        }
      image
        {
          function = FLAT_BOX
          state = ACTIVE
          file = "ui/null.png"
          border = {1,1,1,1}
          stretch = TRUE
        }

      image
        {
          function = FLAT_BOX
          state = PRELIGHT
          file = "ui/menuitem-prelight.png"
          border = {1,1,1,1}
          stretch = TRUE
        }

      image
        {
          function = FLAT_BOX
          state = NORMAL
          file = "ui/null.png"
          border = {1,1,1,1}
          stretch = TRUE
        }

      image
        {
          function = FLAT_BOX
          state = INSENSITIVE
          file = "ui/null.png"
          border = {1,1,1,1}
          stretch = TRUE
        }

      image
        {
          function = FLAT_BOX
          state = SELECTED
          file = "ui/menuitem.png"
          border = {1,1,1,1}
          stretch = TRUE
        }
    }
}

class "GtkTreeView" style "sogg-treeview"
widget "*GtkTreeView*" style "sogg-treeview"
widget "*GimpPlugInView*" style "sogg-treeview"

###########################################################

style "sogg-list-header-style"
{
  #Comment out the ythickness setting below for thicker column headers.
  #ythickness = 0

  GtkTreeView::odd_row_color = "#BDBDBD"
  GtkTreeView::even_row_color = "#BDBDBD"

  #
  # set custom header text color here
  #

  #fg[NORMAL] = "#00F"
  #fg[PRELIGHT] = "#00F"
  #fg[SELECTED] = "#00F"
  #fg[INSENSITIVE] = "#00F"
  #fg[ACTIVE] = "#00F"

  #
  # set custom text color here
  #

  #text[NORMAL] = "#FF0"
  #text[PRELIGHT] = "#FF0"
  #text[SELECTED] = "#FF0"
  #text[INSENSITIVE] = "#FF0"
  #text[ACTIVE] = "#FF0"

  engine "pixmap"
    {
      # This image is used to draw the headers of columns
      # in list views when they are not selected.
      image
        {
          function = BOX
          recolorable = TRUE
          state = NORMAL
          file = "ui/list_header.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
        }

      # This image is used to draw the column headers in
      # list views when they are clicked.
      image
        {
          function = BOX
          recolorable = TRUE
          state = PRELIGHT
          file = "ui/list_header.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
        }

      image
        {
          function = BOX
          recolorable = TRUE
          state = ACTIVE
          file = "ui/list_header-pressed.png"
          border = { 2, 2, 2, 2}
          stretch = TRUE
        }

      image
        {
          function = BOX
          recolorable = TRUE
          state = SELECTED
          file = "ui/list_header.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
        }
    }
}

widget_class "*List" style "sogg-list-header-style"
widget_class "*GtkTree*" style "sogg-list-header-style"
widget_class "*GtkCList" style "sogg-list-header-style"

###########################################################

style "sogg-notebook-style" = "sogg-default-style"
{
  engine "pixmap"
    {
      image
        {
          function = EXTENSION
          recolorable = TRUE
          state = ACTIVE
          file = "ui/ext-top.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
          gap_side = BOTTOM
       }

      image
        {
          function = EXTENSION
          recolorable = TRUE
          state = ACTIVE
          file = "ui/ext-bottom.png"
          border = {  4, 4, 4, 4 }
          stretch = TRUE
          gap_side = TOP
        }

      image
        {
          function = EXTENSION
          recolorable = TRUE
          state = ACTIVE
          file = "ui/ext-right.png"
          border = {  4, 4, 4, 4 }
          stretch = TRUE
          gap_side = LEFT
        }

      image
        {
          function = EXTENSION
          recolorable = TRUE
          state = ACTIVE
          file = "ui/ext-left.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
          gap_side = RIGHT
        }

      image
        {
          function = EXTENSION
          recolorable = TRUE
          file = "ui/extension-top.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
          gap_side = BOTTOM
        }

      image
        {
          function = EXTENSION
          recolorable = TRUE
          file = "ui/extension-bottom.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
          gap_side = TOP
        }

      image
        {
          function = EXTENSION
          recolorable = TRUE
          file = "ui/extension-left.png"
          border = {  4, 4, 4, 4 }
          stretch = TRUE
          gap_side = RIGHT
        }

      image
        {
          function = EXTENSION
          recolorable = TRUE
          file = "ui/extension-right.png"
          border = {  4, 4, 4, 4 }
          stretch = TRUE
          gap_side = LEFT
        }

      image
        {
          function = BOX_GAP
          recolorable = TRUE
          file = "ui/notebook.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
          gap_file = "ui/gap_top.png"
          gap_border = { 1, 1, 1, 1 }
          gap_start_file = "ui/null.png"
          gap_end_file = "ui/null.png"
          gap_side = TOP
        }

      image
        {
          function = BOX_GAP
          recolorable = TRUE
          file = "ui/notebook.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
          gap_file = "ui/gap_bottom.png"
          gap_border = { 2, 1, 1, 1 }
          gap_start_file = "ui/null.png"
          gap_end_file = "ui/null.png"
          gap_side = BOTTOM
        }

      image
        {
          function = BOX_GAP
          recolorable = TRUE
          file = "ui/notebook.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
          gap_file = "ui/gap_left.png"
          gap_border = { 1, 1, 2, 2 }
          gap_start_file = "ui/null.png"
          gap_end_file = "ui/null.png"
          gap_side = LEFT
        }

      image
        {
          function = BOX_GAP
          recolorable = TRUE
          file = "ui/notebook.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
          gap_file = "ui/gap_right.png"
          gap_border = { 1, 1, 2, 1 }
          gap_start_file = "ui/null.png"
          gap_end_file = "ui/null.png"
          gap_side = RIGHT
        }

      image
        {
          function = BOX
          recolorable = TRUE
          file = "ui/notebook.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
          gap_side = TOP
        }
    }
}

class "GtkNotebook" style "sogg-notebook-style"

###########################################################

style "sogg-menu" = "sogg-default-style"
{
  # bg[NORMAL] affects menu detachable item
  bg[NORMAL] = "#999"

  fg[NORMAL] = "#343434"
  fg[PRELIGHT] = "#000000"
  fg[INSENSITIVE] = "#3E3E3E"

  engine "pixmap"
    {
      image
        {
          function = BOX
          recolorable = TRUE
          detail = "menu"
          file = "ui/menu.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
        }

      image
        {
          function = HLINE
          file = "ui/gimp-line-h.png"
          border = { 0, 0, 0, 0 }
          stretch = TRUE
        }
    }
}

class "GtkMenu" style "sogg-menu"
widget_class "*<GtkMenu>*" style "sogg-menu"

###########################################################

style "sogg-menu-bar" = "sogg-default-style"
{
  xthickness = 4
  ythickness = 2

  fg[NORMAL] = "#343434"

  engine "pixmap"
    {
      image
        {
          function = BOX
          file = "ui/menubar.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
        }
    }
}

class "GtkMenuBar" style "sogg-menu-bar"
widget_class "*<GtkMenuBar>*" style "sogg-menu-bar"
widget_class "*<GtkMenuBar>.<GtkMenuItem>*" style "sogg-menu-bar"

###########################################################

style "sogg-menu-item"
{
  xthickness = 2
  ythickness = 4

  bg[NORMAL] = "#B7B7B7"

  fg[NORMAL] = "#343434"
  fg[PRELIGHT] = "#EEEEEE"
  fg[ACTIVE] = "#343434"
  fg[SELECTED] = "#000000"
  fg[INSENSITIVE] = "#3E3E3E"

  engine "pixmap"
    {
      image
        {
          function = BOX
          state = PRELIGHT
          file = "ui/menu-prelight.png"
          border = { 1, 0, 1, 0 }
          stretch = TRUE
        }

      image
        {
          function = OPTION
          shadow = OUT
          recolorable = TRUE
          overlay_file = "ui/option1.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = OPTION
          shadow = IN
          recolorable = TRUE
          overlay_file = "ui/option2.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = OPTION
          shadow = ETCHED_IN
          recolorable = TRUE
          overlay_file = "ui/option3.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = OUT
          recolorable = TRUE
          overlay_file = "ui/check1.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = IN
          recolorable = TRUE
          overlay_file = "ui/check2.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = ETCHED_IN
          recolorable = TRUE
          overlay_file = "ui/check3.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }
    }
}

class "GtkMenuItem" style "sogg-menu-item"
widget_class "*<GtkMenuItem>*" style "sogg-menu-item"

###########################################################

style "sogg-item"
{
  xthickness = 4

  bg[NORMAL] = "#B7B7B7"

  fg[NORMAL] = "#343434"
  fg[PRELIGHT] = "#DFDFDF"
  fg[ACTIVE] = "#343434"
  fg[SELECTED] = "#000000"
  fg[INSENSITIVE] = "#3E3E3E"

  engine "pixmap"
    {
      image
        {
          function = BOX
          recolorable = TRUE
          file = "ui/button-normal.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = PRELIGHT
          overlay_file = "ui/gimp-arrow-right.png"
          overlay_stretch = FALSE
          arrow_direction = RIGHT
        }

      image
        {
          function = ARROW
          state = NORMAL
          recolorable = TRUE
          overlay_file = "ui/gimp-arrow-right-dark.png"
          overlay_stretch = FALSE
          arrow_direction = RIGHT
        }
    }
}

class "GtkItem" style "sogg-item"

###########################################################


style "sogg-entry" = "sogg-default-style"
{
  GtkWidget::interior_focus = 1

  #text[ACTIVE] = "#CBCBCB"
  #text[SELECTED] = "#CBCBCB"

  engine "pixmap"
    {
      image
        {
          function = FLAT_BOX
          detail = "entry_bg"
          state = NORMAL
          overlay_file = "ui/entry-border-fill.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = TRUE
        }

      image
        {
          function = FLAT_BOX
          detail = "entry_bg"
          state = ACTIVE
          overlay_file = "ui/entry-border-fill-active.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = TRUE
        }

      image
        {
          function = SHADOW
          detail = "entry"
          file = "ui/shadow-null.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
        }

      image
        {
          function = FOCUS
          state = NORMAL
          recolorable = TRUE
          file = "ui/shadow-in-alt.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
        }
    }
}

class "GtkEntry" style "sogg-entry"
class "GtkOldEditable" style "sogg-entry"
widget_class "*GtkTree*GtkEntry" style "sogg-entry"

###########################################################


style "sogg-spin-button" = "sogg-entry"
{
  engine "pixmap"
    {
      image
        {
          function = ARROW
        }

      image
        {
          function = BOX
          state = NORMAL
          detail = "spinbutton_up"
          recolorable = TRUE
          file = "ui/spin.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-up-normal.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = PRELIGHT
          detail = "spinbutton_up"
          recolorable = TRUE
          file = "ui/spin.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-up-normal.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = ACTIVE
          detail = "spinbutton_up"
          recolorable = TRUE
          file = "ui/spin.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-up-pressed.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = INSENSITIVE
          detail = "spinbutton_up"
          recolorable = TRUE
          file = "ui/spin-insensitive.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-up-insensitive.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = NORMAL
          detail = "spinbutton_down"
          recolorable = TRUE
          file = "ui/spin.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-down-normal.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = PRELIGHT
          detail = "spinbutton_down"
          recolorable = TRUE
          file = "ui/spin.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-down-normal.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = ACTIVE
          detail = "spinbutton_down"
          recolorable = TRUE
          file = "ui/spin.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-down-pressed.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = INSENSITIVE
          detail = "spinbutton_down"
          recolorable = TRUE
          file = "ui/spin-insensitive.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
          overlay_file = "ui/spin-down-insensitive.png"
          overlay_stretch = FALSE
        }
    }
}

class "GtkSpinButton" style "sogg-spin-button"

###########################################################

style "sogg-scroll-bar"
{
  GtkRange::trough_border = 0
  GtkVScale::slider_length = 16
  GtkVScale::slider_width = 19
  GtkHScale::slider_length = 17
  GtkHScale::slider_width = 19
  GtkRange::slider_width = 15
  GtkRange::stepper_size = 15
  GtkScrollbar::min_slider_length = 30

  engine "pixmap"
    {
      image
        {
          function = BOX
          recolorable = TRUE
          detail = "trough"
          file = "ui/slider-v.png"
          border = { 0,0,39,39}
          stretch = TRUE
          orientation = VERTICAL
        }

      image
        {
          function = BOX
          recolorable = TRUE
          detail = "trough"
          file = "ui/slider-h.png"
          border = { 39,39,0,0 }
          stretch = TRUE
          orientation = HORIZONTAL
        }

      image
        {
          function = SLIDER
          recolorable = TRUE
          file = "ui/bar-h.png"
          border = { 2,2,2,2 }
          stretch = TRUE
          orientation = HORIZONTAL
        }

      image
        {
          function = SLIDER
          recolorable = TRUE
          file = "ui/bar-v.png"
          border = { 2,2,2,2 }
          stretch = TRUE
          orientation = VERTICAL
        }

      image
        {
          function = BOX
          recolorable = TRUE
          file = "ui/null.png"
          border = {0,0,0,0}
          stretch = TRUE
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = NORMAL
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = UP
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = NORMAL
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = DOWN
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = NORMAL
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = LEFT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = NORMAL
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = RIGHT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = PRELIGHT
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = UP
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = PRELIGHT
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = DOWN
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = PRELIGHT
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = LEFT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = PRELIGHT
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = RIGHT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = INSENSITIVE
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = UP
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = INSENSITIVE
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = DOWN
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = INSENSITIVE
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = LEFT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          state = INSENSITIVE
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = RIGHT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          shadow = IN
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = UP
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          shadow = IN
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = DOWN
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          shadow = IN
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = LEFT
        }

      image
        {
          function = ARROW
          recolorable = TRUE
          shadow = IN
          overlay_file = "ui/null.png"
          overlay_border = {0,0,0,0}
          overlay_stretch = FALSE
          arrow_direction = RIGHT
        }
    }
}

class "GtkScrollbar" style "sogg-scroll-bar"

###########################################################

style "sogg-radio-button" = "sogg-default-style"
{
  engine "pixmap"
    {
      image
        {
          function = OPTION
          shadow = OUT
          recolorable = TRUE
          overlay_file = "ui/option1.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = OPTION
          shadow = IN
          recolorable = TRUE
          overlay_file = "ui/option2.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = OPTION
          shadow = ETCHED_IN
          recolorable = TRUE
          overlay_file = "ui/option3.png"
          overlay_stretch = FALSE
        }
    }
}

class "GtkRadioButton"   style "sogg-radio-button"
class "GtkRadioMenuItem"  style "sogg-radio-button"
class "GtkTreeView"  style "sogg-radio-button"

###########################################################

style "sogg-check-button" = "sogg-default-style"
{
  engine "pixmap"
    {
      image
        {
          function = CHECK
          shadow = OUT
          recolorable = TRUE
          overlay_file = "ui/check1.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = IN
          recolorable = TRUE
          overlay_file = "ui/check2.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = ETCHED_IN
          recolorable = TRUE
          overlay_file = "ui/check3.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }
    }
}

class "GtkCheckButton"   style "sogg-check-button"
class "GtkCheckMenuItem"   style "sogg-check-button"
class "GtkTreeView"   style "sogg-check-button"

###########################################################

style "sogg-progress-bar" = "sogg-default-style"
{
  xthickness = 1
  ythickness = 1

  engine "pixmap"
    {
      image
        {
          function = BOX
          recolorable = TRUE
          detail = "bar"
          file = "ui/progressbar.png"
          border = { 2, 2, 3, 3}
          stretch = TRUE
        }

      image
        {
          function = BOX
          recolorable = TRUE
          detail = "trough"
          file = "ui/progressbar-trough.png"
          border = { 3, 3, 4, 4}
          stretch = TRUE
          orientation = HORIZONTAL
        }
    }
}

class "GtkProgressBar" style "sogg-progress-bar"

###########################################################

style "sogg-separator-menu-item"
{
  engine "pixmap"
    {
      image
        {
          function = BOX
          file = "ui/gimp-menu-line-h.png"
          border = { 0, 0, 1, 0 }
          stretch = TRUE
        }
    }
}

class "GtkSeparatorMenuItem" style "sogg-separator-menu-item"

###########################################################

style "sogg-notebook-entry-style"
{
  engine "pixmap"
    {
      image
        {
          function = SHADOW
          detail = "entry"
          state = NORMAL
          shadow = IN
          file = "ui/entry-border-notebook-null.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
        }

      image
        {
          function = SHADOW
          detail = "entry"
          state = INSENSITIVE
          shadow = IN
          file = "ui/entry-border-disabled-notebook.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
        }

      image
        {
          function = SHADOW
          detail = "entry"
          state = ACTIVE
          file = "ui/entry-border-active-notebook.png"
          border = { 4, 4, 4, 4 }
          stretch = TRUE
        }
    }
}

widget_class "*<GtkNotebook>*<GtkEntry>" style "sogg-notebook-entry-style"

###########################################################

style "sogg-notebook-combobox-entry-style"
{
  engine "pixmap"
    {
      # LTR version
      image
        {
          function = SHADOW
          detail = "entry"
          state = NORMAL
          shadow = IN
          file = "ui/combo-entry-border-notebook.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = LTR
        }

      image
        {
          function = SHADOW
          detail = "entry"
          state = INSENSITIVE
          shadow = IN
          file = "ui/combo-entry-border-disabled-notebook.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = LTR
        }

      image
        {
          function = SHADOW
          detail = "entry"
          state = ACTIVE
          file = "ui/combo-entry-border-active-notebook.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = LTR
        }

      # RTL version
      image
        {
          function = SHADOW
          detail = "entry"
          state = NORMAL
          shadow = IN
          file = "ui/combo-entry-border-rtl-notebook.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = RTL
        }

      image
        {
          function = SHADOW
          detail = "entry"
          state = INSENSITIVE
          shadow = IN
          file = "ui/combo-entry-border-disabled-rtl-notebook.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = RTL
        }

      image
        {
          function = SHADOW
          detail = "entry"
          state = ACTIVE
          file = "ui/combo-entry-border-active-rtl-notebook.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = RTL
        }
    }
}

widget_class "*<GtkNotebook>*<GtkComboBoxEntry>*<GtkEntry>" style "sogg-notebook-combobox-entry-style"

###########################################################

style "sogg-combobox-entry-button-style"
{
  xthickness = 6

  fg[ACTIVE] = "#343434"

  engine "pixmap"
    {
      # LTR version
      image
        {
          function = BOX
          state = NORMAL
          file = "ui/combo-entry-button.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = LTR
        }

      image
        {
          function = BOX
          state = PRELIGHT
          file = "ui/combo-entry-button.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = LTR
        }

      image
        {
          function = BOX
          state = INSENSITIVE
          file = "ui/combo-entry-button-disabled.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = LTR
        }

      image
        {
          function = BOX
          state = ACTIVE
          file = "ui/combo-entry-button-active.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = LTR
        }

      # RTL version
      image
        {
          function = BOX
          state = NORMAL
          file = "ui/combo-entry-button-rtl.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = RTL
        }

      image
        {
          function = BOX
          state = PRELIGHT
          file = "ui/combo-entry-button-rtl.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = RTL
        }

      image
        {
          function = BOX
          state = INSENSITIVE
          file = "ui/combo-entry-button-disabled-rtl.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = RTL
        }

      image
        {
          function = BOX
          state = ACTIVE
          file = "ui/combo-entry-button-active-rtl.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
          direction = RTL
        }
    }
}

widget_class "*<GtkComboBoxEntry>*<GtkEntry>" style "sogg-combobox-entry-button-style"
widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkComboBoxEntry>*<GtkEntry>" style "sogg-combobox-entry-button-style"
widget_class "*<GtkComboBoxEntry>*<GtkButton>" style "sogg-combobox-entry-button-style"

###########################################################

style "sogg-range-style"
{
  engine "pixmap"
    {
      image
        {
          function = BOX
          detail = "trough"
          file = "ui/null.png"
          border = { 4, 4, 0, 0 }
          stretch = TRUE
          orientation = HORIZONTAL
        }

      image
        {
          function = BOX
          detail = "trough"
          border = { 0, 0, 4, 4 }
          file = "ui/null.png"
          stretch = TRUE
          orientation = VERTICAL
        }

      # Horizontal
      image
        {
          function = SLIDER
          state = NORMAL
          file = "ui/null.png"
          border = { 0, 0, 0, 0 }
          stretch = TRUE
          orientation = HORIZONTAL
        }

      image
        {
          function = SLIDER
          state = PRELIGHT
          file = "ui/null.png"
          border = { 0, 0, 0, 0 }
          stretch = TRUE
          orientation = HORIZONTAL
        }

      image
        {
          function = SLIDER
          state = INSENSITIVE
          file = "ui/null.png"
          border = { 0, 0, 0, 0 }
          stretch = TRUE
          orientation = HORIZONTAL
        }

      # Vertical
      image
        {
          function = SLIDER
          state = NORMAL
          file = "ui/null.png"
          border = { 0, 0, 0, 0 }
          stretch = TRUE
          orientation = VERTICAL
        }

      image
        {
          function = SLIDER
          state = PRELIGHT
          file = "ui/null.png"
          border = { 0, 0, 0, 0 }
          stretch = TRUE
          orientation = VERTICAL
        }

      image
        {
          function = SLIDER
          state = INSENSITIVE
          file = "ui/null.png"
          border = { 0, 0, 0, 0 }
          stretch = TRUE
          orientation = VERTICAL
        }

      # Function below removes the fuglies :)
      image
        {
          function = BOX
          file = "ui/transparent.png"
          border = { 3, 3, 3, 3 }
          stretch = TRUE
        }
    }
}

class "GtkRange" style "sogg-range-style"

###########################################################

style "sogg-spin-scale-style"
{
  bg[NORMAL] = "#BDBDBD"

  text[NORMAL] = "#F00"
  text[PRELIGHT] = "#0F0"
  text[ACTIVE] = "#00F"
  text[SELECTED] = "#FF0"
  text[INSENSITIVE] = "#0FF"

  engine "pixmap"
    {
      image
        {
          function = FLAT_BOX
          detail = "entry_bg"
          state = NORMAL
        }

      image
        {
          function = FLAT_BOX
          detail = "entry_bg"
          state = ACTIVE
        }

      image
        {
          function = BOX
          state = NORMAL
          detail = "spinbutton_up"
          overlay_file = "ui/arrow-up-small.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = PRELIGHT
          detail = "spinbutton_up"
          overlay_file = "ui/arrow-up-small-prelight.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = ACTIVE
          detail = "spinbutton_up"
          overlay_file = "ui/arrow-up-small-prelight.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = INSENSITIVE
          detail = "spinbutton_up"
          overlay_file = "ui/arrow-up-small-insens.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = NORMAL
          detail = "spinbutton_down"
          overlay_file = "ui/arrow-down-small.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = PRELIGHT
          detail = "spinbutton_down"
          overlay_file = "ui/arrow-down-small-prelight.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = ACTIVE
          detail = "spinbutton_down"
          overlay_file = "ui/arrow-down-small-prelight.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = BOX
          state = INSENSITIVE
          detail = "spinbutton_down"
          overlay_file = "ui/arrow-down-small-insens.png"
          overlay_stretch = FALSE
        }
    }
}

class "GimpSpinScale" style "sogg-spin-scale-style"

###########################################################

style "sogg-scrolled-window-style"
{
  xthickness = 1
  ythickness = 1

  engine "pixmap"
    {
      image
        {
          function = SHADOW
          file = "ui/frame.png"
          border = { 5, 5, 5, 5 }
          stretch = TRUE
        }
    }
}

class "GtkScrolledWindow" style "sogg-scrolled-window-style"

###########################################################

style "sogg-frame-style"
{
  xthickness = 1
  ythickness = 1

  engine "pixmap"
    {
      image
        {
          function = SHADOW
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          shadow = IN
        }

      image
        {
          function = SHADOW_GAP
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          gap_start_file = "ui/frame-gap-start.png"
          gap_start_border = { 1, 0, 0, 0 }
          gap_end_file = "ui/frame-gap-end.png"
          gap_end_border = { 0, 1, 0, 0 }
          shadow = IN
        }

      image
        {
          function = SHADOW
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          shadow = OUT
        }

      image
        {
          function = SHADOW_GAP
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          gap_start_file = "ui/frame-gap-start.png"
          gap_start_border = { 1, 0, 0, 0 }
          gap_end_file = "ui/frame-gap-end.png"
          gap_end_border = { 0, 1, 0, 0 }
          shadow = OUT
        }

      image
        {
          function = SHADOW
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          shadow = ETCHED_IN
        }

      image
        {
          function = SHADOW_GAP
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          gap_start_file = "ui/frame-gap-start.png"
          gap_start_border = { 1, 0, 0, 0 }
          gap_end_file = "ui/frame-gap-end.png"
          gap_end_border = { 0, 1, 0, 0 }
          shadow = ETCHED_IN
        }

      image
        {
          function = SHADOW
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          shadow = ETCHED_OUT
        }

      image
        {
          function = SHADOW_GAP
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          gap_start_file = "ui/frame-gap-start.png"
          gap_start_border = { 1, 0, 0, 0 }
          gap_end_file = "ui/frame-gap-end.png"
          gap_end_border = { 0, 1, 0, 0 }
          shadow = ETCHED_OUT
        }
    }
}

class "GtkFrame" style "sogg-frame-style"

###########################################################

style "sogg-toolbox-frame-style"
{
  engine "pixmap"
    {
      image
        {
          function = SHADOW
        }
    }
}

widget_class "*<GimpToolbox>*<GtkFrame>" style "sogg-toolbox-frame-style"

###########################################################

style "sogg-toolbar-style"
{
  engine "pixmap"
    {
      image
        {
          function = BOX
          file = "ui/toolbar.png"
          stretch = TRUE
          border = { 1, 1, 1, 1 }
        }

      image
        {
          function = BOX_GAP
          recolorable = TRUE
          detail = "handlebox_bin"
          file = "ui/gimp-handle-h.png"
          border = { 4, 3, 4, 3 }
          stretch = FALSE
        }

      image
        {
          function = HANDLE
          overlay_file = "ui/gimp-handle-h.png"
          overlay_stretch = FALSE
          orientation = HORIZONTAL
        }

      image
        {
          function = HANDLE
          overlay_file = "ui/gimp-handle-v.png"
          overlay_stretch = FALSE
          orientation = VERTICAL
        }

      image
        {
          function = VLINE
          recolorable = TRUE
          file = "ui/null.png"
          stretch = TRUE
          border = { 1, 1, 1, 1 }
        }

      image
        {
          function = HLINE
          recolorable = TRUE
          file = "ui/null.png"
          stretch = TRUE
          border = { 1, 1, 1, 1 }
        }
    }
}

class "GtkToolbar" style "sogg-toolbar-style"
class "*HandleBox*" style "sogg-toolbar-style"

###########################################################

style "sogg-combobox-separator-style"
{
  xthickness = 0
  ythickness = 0
  GtkWidget::wide-separators = 1
}

widget_class "*<GtkComboBox>*<GtkSeparator>" style "sogg-combobox-separator-style"

###########################################################

style "sogg-combobox-button-style"
{
  xthickness = 3
  ythickness = 3
}

widget_class "*<GtkComboBox>*<GtkButton>" style "sogg-combobox-button-style"

###########################################################

style "sogg-combobox-style"
{
  xthickness = 0
  ythickness = 0
}

widget_class "*<GtkComboBox>" style "sogg-combobox-style"

###########################################################

style "sogg-combobox-style1"
{
  xthickness = 0
  ythickness = 0

  engine "pixmap"
    {
      image
        {
          function = BOX
          file = "ui/gimp-button-normal.png"
          border = { 4, 4, 5, 4 }
          stretch = TRUE
        }
    }
}

widget_class "*<GtkEntry>*<GtkButton>*" style "sogg-combobox-style1"

###########################################################

style "sogg-button-style"
{
  fg[PRELIGHT] = "#040404"
  fg[ACTIVE] = "#646464"
  fg[NORMAL] = "#343434"
  fg[INSENSITIVE] = "#343434"
}

widget_class "*GtkButton*" style "sogg-button-style"

###########################################################

style "kde_hack_1"
{
  GtkComboBox::appears-as-list = 0
  GtkComboBoxEntry::appears-as-list = 0
  GtkComboBoxText::appears-as-list = 0

  color["clr1"] = "#343434"
  color["clr2"] = "#222222"
  color["clr3"] = "#3E3E3E"
  color["clr4"] = "#777777"
  color["clr5"] = "#888888"
  color["clr6"] = "#999999"
  color["clr7"] = "#3b3b3b"
  color["clr8"] = "#DDDDDD"
  color["clr9"] = "#B2B2B2"
  color["clr10"] = "#000000"

  fg[NORMAL] = @clr2
  fg[PRELIGHT] = @clr10
  fg[ACTIVE] = @clr3
  fg[SELECTED] = @clr2
  fg[INSENSITIVE] = @clr3

  base[NORMAL] = @clr6
  base[PRELIGHT] = @clr7
  base[ACTIVE] = @clr2
  base[SELECTED] = @clr2
  base[INSENSITIVE] = @clr8

  text[NORMAL] = @clr1
  text[PRELIGHT] = @clr10
  text[ACTIVE] = @clr8
  text[SELECTED] = @clr8
  text[INSENSITIVE] = @clr9
}

widget_class "*" style "kde_hack_1"

###########################################################

style "kde_hack_2"
{
  bg[NORMAL] = "#777777" #Sets canvas BG
}

widget "*GimpDisplayShell.*" style "kde_hack_2"

###########################################################

style "kde_hack_3"
{
  bg[NORMAL] = "#777777"
}

class "GtkFrame" style "kde_hack_3"
widget_class "*<GimpDisplay>*" style "kde_hack_3"

###########################################################

style "kde_hack_4"
{
  engine "pixmap"
    {
      image
        {
          function = OPTION
          shadow = OUT
          recolorable = TRUE
          overlay_file = "ui/option1.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = OPTION
          shadow = IN
          recolorable = TRUE
          overlay_file = "ui/option2.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = OPTION
          shadow = ETCHED_IN
          recolorable = TRUE
          overlay_file = "ui/option3.png"
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = OUT
          recolorable = TRUE
          overlay_file = "ui/check1.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = IN
          recolorable = TRUE
          overlay_file = "ui/check2.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }

      image
        {
          function = CHECK
          shadow = ETCHED_IN
          recolorable = TRUE
          overlay_file = "ui/check3.png"
          overlay_border = { 0, 0, 0, 0 }
          overlay_stretch = FALSE
        }
    }
}

widget_class "*<GtkWidget>*" style "kde_hack_4"

###########################################################

# KDE Hack 5
widget_class "*<GtkToolbar>*" style "sogg-toolbar-style"

###########################################################

style "kde_hack_6"
{
  engine "pixmap"
    {
      # This image is used to draw the headers of columns
      # in list views when they are not selected.
      image
        {
          function = BOX
          recolorable = TRUE
          state = NORMAL
          file = "ui/list_header.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
        }

      # This image is used to draw the column headers in
      # list views when they are clicked.
      image
        {
          function = BOX
          recolorable = TRUE
          state = PRELIGHT
          file = "ui/list_header.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
        }

      image
        {
          function = BOX
          recolorable = TRUE
          state = ACTIVE
          file = "ui/list_header-pressed.png"
          border = { 2, 2, 2, 2}
          stretch = TRUE
        }

      image
        {
          function = BOX
          recolorable = TRUE
          state = SELECTED
          file = "ui/list_header.png"
          border = { 2, 2, 2, 2 }
          stretch = TRUE
        }
    }
}

widget_class "*<GtkTreeView>*<GtkButton>*" style "kde_hack_6"

###########################################################

# KDE & oxygen-gtk fix for BG
style "sogg-oxygen-default-style" = "sogg-default-style"
{
  GtkComboBox::appears-as-list = 0
  GtkComboBoxEntry::appears-as-list = 0
  GtkComboBoxText::appears-as-list = 0
}

class "*" style "sogg-oxygen-default-style"

###########################################################

style "sogg-gtkscale-style"
{
  engine "pixmap"
    {
      image
        {
          function = SLIDER
          recolorable = TRUE
          file = "ui/bar-h.png"
          border = { 2,2,2,2 }
          stretch = TRUE
          orientation = HORIZONTAL
        }

      image
        {
          function = SLIDER
          recolorable = TRUE
          file = "ui/bar-v.png"
          border = { 2,2,2,2 }
          stretch = TRUE
          orientation = VERTICAL
        }

      image
        {
          function = BOX
          recolorable = TRUE
          file = "ui/slider-h.png"
          border = {0,0,0,0}
          stretch = TRUE
          orientation = HORIZONTAL
        }

      image
        {
          function = BOX
          recolorable = TRUE
          file = "ui/slider-v.png"
          border = {0,0,0,0}
          stretch = TRUE
          orientation = VERTICAL
        }
    }
}

class "GtkScale" style "sogg-gtkscale-style"
class "GtkVScale" style "sogg-gtkscale-style"
class "GtkHScale" style "sogg-gtkscale-style"
widget_class "*GtkScale*" style "sogg-gtkscale-style"
widget_class "*GtkVScale*" style "sogg-gtkscale-style"
widget_class "*GtkHScale*" style "sogg-gtkscale-style"

###########################################################

style "tlsog-overlay-scrollbar"
{
  bg[SELECTED] = "#555"
  bg[INSENSITIVE] = "#777"
  bg[ACTIVE] = "#333"
  bg[NORMAL] = "#CCC"
  bg[PRELIGHT] = "#CCC"

  fg[NORMAL] = "#333"
}

widget_class "*<OsScrollbar>" style "tlsog-overlay-scrollbar"
widget_class "*<OsThumb>" style "tlsog-overlay-scrollbar"

###########################################################

# Fix for GMIC/plugins
style "tlsog-plugin-scrolled-window-style"
{
  xthickness = 1
  ythickness = 1

  engine "pixmap"
    {
      image
        {
          function = SHADOW
          file = "ui/frame.png"
          border = { 1, 1, 1, 1 }
          stretch = TRUE
          shadow = IN
        }
    }
}

widget_class "*<GtkScrolledWindow>*<GtkViewport>" style "tlsog-plugin-scrolled-window-style"

###########################################################

# Menu prelight fix for Ubuntu Unity
style "ubuntu-fix-menu-item"
{
  engine "pixmap"
    {
      image
        {
          function = BOX
          state = PRELIGHT
          file = "ui/menu-prelight.png"
          border = { 1, 0, 1, 0 }
          stretch = TRUE
        }
    }
}

widget "GtkMenuItem" style "ubuntu-fix-menu-item"

###########################################################

style "gray-python-console"
{
  text[NORMAL] = "#080"
  text[INSENSITIVE] = "#800"
}

widget "python-fu-console" style "gray-python-console"

# EOF
