# PhotoGimp GTK theme
# Author(s):
# - Gabriel Almir, galmirpr

###########################
# Override GIMP Dark Mode #
###########################

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 "gimp-dark-default-style"
{
#  font_name = "Sans 11"

  color["clr1"]  = "#DDDDDD"
  color["clr2"]  = "#FFFFFF"
  color["clr3"]  = "#C1C1C1"
  color["clr4"]  = "#383838"
  color["clr5"]  = "#555555"
  color["clr6"]  = "#828282"
  color["clr7"]  = "#3B3B3B"
  color["clr8"]  = "#383838"
  color["clr9"]  = "#2d2d2d"
  color["clrA"]  = "#303030"

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

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

  base[NORMAL] = @clrA
  base[PRELIGHT] = @clr7
  base[ACTIVE] = @clr7
  base[SELECTED] = @clr1
  base[INSENSITIVE] = @clr8

  text[NORMAL] = @clr1
  text[PRELIGHT] = @clr1
  text[ACTIVE] = @clr1
  text[SELECTED] = @clr7
  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

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

  GtkButton::focus-line_width = 0
  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
  GtkComboBoxText::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 "gimp-dark-default-style"
class "GtkMenuItem" style "gimp-dark-default-style"

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

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

class "GimpToolDialog" style "gimp-dark-tool-dialog-style"

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

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

widget_class "*GimpContainerGridView*GtkViewport*" style "gimp-dark-grid-view-style"

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

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

widget_class "*GimpDockable.*" style "gimp-dark-dockable-style"

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

style "gimp-dark-display-style" = "gimp-dark-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_class "*GimpDisplayShell.*" style "gimp-dark-display-style"

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

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

widget_class "*<GimpOverlayFrame>*" style "gimp-dark-overlay-style"

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

style "gimp-dark-gtkbutton-style" = "gimp-dark-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 "gimp-dark-gtkbutton-style"

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

style "gimp-dark-tooltips-style" = "gimp-dark-default-style"
{
  xthickness = 4
  ythickness = 4

  bg[NORMAL] = "#383838"
  bg[SELECTED] = "#828282"
  fg[NORMAL] = @clr1
}

widget "gtk-tooltip*" style "gimp-dark-tooltips-style"

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

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

  GtkTreeView::odd_row_color = "#1f1f1f"
  GtkTreeView::even_row_color = "#1f1f1f"

  #
  # 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] = "#C1C1C1"
  #text[PRELIGHT] = "#FF0"
  text[SELECTED] = "#DDDDDD"
  #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 "gimp-dark-list-header-style"
widget_class "*GtkTree*" style "gimp-dark-list-header-style"
widget_class "*GtkCList" style "gimp-dark-list-header-style"

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

style "gimp-dark-notebook-style" = "gimp-dark-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 "gimp-dark-notebook-style"

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

style "gimp-dark-menu" = "gimp-dark-default-style"
{
  # bg[NORMAL] affects menu detachable item
  bg[NORMAL] = "#484848"

  fg[NORMAL] = "#CBCBCB"
  fg[PRELIGHT] = "#FFFFFF"
  fg[INSENSITIVE] = "#C1C1C1"

  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 "gimp-dark-menu"
widget_class "*<GtkMenu>*" style "gimp-dark-menu"

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

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

  fg[NORMAL] = "#CBCBCB"

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

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

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

style "gimp-dark-menu-item"
{
  xthickness = 2
  ythickness = 4

  bg[NORMAL] = "#484848"

  fg[NORMAL] = "#FFF"
  fg[PRELIGHT] = "#FFF"
  fg[ACTIVE] = "#FFF"
  fg[SELECTED] = "#FFF"
  fg[INSENSITIVE] = "#C1C1C1"

  engine "pixmap"
    {
      image
        {
          function = BOX
          state = PRELIGHT
          file = "ui/entry-border-fill-active.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 "gimp-dark-menu-item"
widget_class "*<GtkMenuItem>*" style "gimp-dark-menu-item"

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

style "gimp-dark-item"
{
  xthickness = 4

  bg[NORMAL] = "#484848"

  fg[NORMAL] = "#FFF"
  fg[PRELIGHT] = "#FFF"
  fg[ACTIVE] = "#FFF"
  fg[SELECTED] = "#FFF"
  fg[INSENSITIVE] = "#C1C1C1"

  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 "gimp-dark-item"
widget_class "*GtkItem*" style "gimp-dark-item"

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


style "gimp-dark-entry" = "gimp-dark-default-style"
{
  GtkWidget::interior_focus = 1

  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 "gimp-dark-entry"
class "GtkOldEditable" style "gimp-dark-entry"
widget_class "*GtkTree*GtkEntry" style "gimp-dark-entry"

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


style "gimp-dark-spin-button" = "gimp-dark-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 "gimp-dark-spin-button"

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

style "gimp-dark-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 "gimp-dark-scroll-bar"

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

style "gimp-dark-radio-button" = "gimp-dark-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 "gimp-dark-radio-button"
class "GtkRadioMenuItem"  style "gimp-dark-radio-button"
class "GtkTreeView"  style "gimp-dark-radio-button"

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

style "gimp-dark-check-button" = "gimp-dark-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 "gimp-dark-check-button"
class "GtkCheckMenuItem"   style "gimp-dark-check-button"
class "GtkTreeView"   style "gimp-dark-check-button"

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

style "gimp-dark-progress-bar" = "gimp-dark-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 "gimp-dark-progress-bar"

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

style "gimp-dark-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 "gimp-dark-separator-menu-item"

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

style "gimp-dark-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 "gimp-dark-notebook-entry-style"

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

style "gimp-dark-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 "gimp-dark-notebook-combobox-entry-style"

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

style "gimp-dark-combobox-entry-button-style"
{
  xthickness = 6

  fg[ACTIVE] = "#CBCBCB"

  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 "gimp-dark-combobox-entry-button-style"
widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkComboBoxEntry>*<GtkEntry>" style "gimp-dark-combobox-entry-button-style"
widget_class "*<GtkComboBoxEntry>*<GtkButton>" style "gimp-dark-combobox-entry-button-style"

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

style "gimp-dark-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 "gimp-dark-range-style"

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

style "gimp-dark-spin-scale-style"
{
  fg[NORMAL] = "#131313"
  bg[NORMAL] = "#1f1f1f"

  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 "gimp-dark-spin-scale-style"

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

style "gimp-dark-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 "gimp-dark-scrolled-window-style"

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

style "gimp-dark-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 "gimp-dark-frame-style"

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

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

widget_class "*<GimpToolbox>*<GtkFrame>" style "gimp-dark-toolbox-frame-style"

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

style "gimp-dark-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 "gimp-dark-toolbar-style"
class "*HandleBox*" style "gimp-dark-toolbar-style"

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

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

widget_class "*<GtkComboBox>*<GtkSeparator>" style "gimp-dark-combobox-separator-style"

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

style "gimp-dark-combobox-button-style"
{
  xthickness = 3
  ythickness = 3
}

widget_class "*<GtkComboBox>*<GtkButton>" style "gimp-dark-combobox-button-style"

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

style "gimp-dark-combobox-style"
{
  xthickness = 0
  ythickness = 0
}

widget_class "*<GtkComboBox>" style "gimp-dark-combobox-style"

style "gimp-dark-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 "gimp-dark-combobox-style1"

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

style "gimp-dark-button-style"
{
  fg[PRELIGHT] = "#FBFBFB"
  fg[ACTIVE] = "#9B9B9B"
  fg[NORMAL] = "#CBCBCB"
  fg[INSENSITIVE] = "#CBCBCB"
}

widget_class "*<GtkButton>*" style "gimp-dark-button-style"

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

style "gimp-dark-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 "gimp-dark-gtkscale-style"
class "GtkVScale" style "gimp-dark-gtkscale-style"
class "GtkHScale" style "gimp-dark-gtkscale-style"
widget_class "*GtkScale*" style "gimp-dark-gtkscale-style"
widget_class "*GtkVScale*" style "gimp-dark-gtkscale-style"
widget_class "*GtkHScale*" style "gimp-dark-gtkscale-style"

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

style "tdsog-overlay-scrollbar"
{
  bg[SELECTED] = "#CCC"
  bg[INSENSITIVE] = "#AAA"
  bg[ACTIVE] = "#EEE"
  bg[NORMAL] = "#666"
  bg[PRELIGHT] = "#666"

  fg[NORMAL] = "#EEE"
}

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

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

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

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

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

style "dark-python-console"
{
  text[NORMAL] = "#8f8"
  text[INSENSITIVE] = "#f88"
}

widget "python-fu-console" style "dark-python-console"

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

style "gimp-dark-spin-scale-style"
{
  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 "gimp-dark-spin-scale-style"

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

style "gimp-dark-treeview" = "gimp-dark-default-style"
{
  xthickness = 2
  ythickness = 0

  GtkTreeView::odd_row_color = "#383838"
  GtkTreeView::even_row_color = "#383838"

  #
  # set custom text color here
  #

  #text[NORMAL] = "#C1C1C1"
  #text[NORMAL] = "#C1C1C1"
  #text[PRELIGHT] = "#0F0"
  #text[SELECTED] = "#0F0"
  #text[INSENSITIVE] = "#0F0"
  #text[ACTIVE] = "#0F0"

  engine  "pixmap"
    {
      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/null.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 "gimp-dark-treeview"

# END OF GIMP DARK MODE Override
####################################################

#
# Adjust the size of previews in plug-in dialogs:
#
style "gimp-large-preview"
{
  GimpPreview::size = 256
}

# class "GimpPreview" style "gimp-large-preview"
