# Poker3D
# 
# Based on 6gnome by Marcus Petzoldt <m.petzoldt@gmx.de>
# and on Crystal Bluecurve 1.0 - Modified
# Depends on GTK+ 2.x and pixmap engine
#
# Copyright (c) 2004 Philippe Nouhra <www.philours.com>
# for Mekensleep <www.mekensleep.com>
#
# The Poker3D theme is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# The Poker3D theme 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
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with the Poker3D theme; see the file LICENSE.  If
# not, write to the Free Software Foundation, Inc., 59 Temple Place -
# Suite 330, Boston, MA 02111-1307, USA.


include "iconrc"

style "user-font"
{
  font_name="Sans 20"
}
widget_class "*" style "user-font"

style "Poker3D-default"
{
  GtkWidget::interior_focus         = 0
  GtkWidget::focus_padding          = 0
  GtkButton::default_border         = { 2, 0, 2, 0 }
  GtkButton::default_outside_border = { 2, 0, 2, 0 }
  GtkRange::trough_border           = 0
  GtkRange::slider_width            = 12
  GtkRange::stepper_size            = 12
  GtkPaned::handle_size             = 6
  GtkScrollbar::min_slider_length   = 30
  GtkCheckButton::indicator_size    = 12
  GtkMenuBar::internal_padding      = 2
  GtkOptionMenu::indicator_size     = { 12, 8 }
  GtkOptionMenu::indicator_spacing  = { 0, 4, 0, 0 }

  xthickness            = 1
  ythickness            = 1
    
  fg[NORMAL]            = "#000000"
  fg[PRELIGHT]          = "#000000"
  fg[ACTIVE]            = "#000000"
  fg[SELECTED]          = "#ffffff"
  fg[INSENSITIVE]       = "#CBA36E"
  
  bg[NORMAL]            = "#CDBCA3"
  bg[PRELIGHT]          = "#E3D6C3"
  bg[ACTIVE]            = "#F3ECE2"
  bg[SELECTED]          = "#B0814D"
  bg[INSENSITIVE]       = "#E6E0D7"

  bg_pixmap[NORMAL]      = "poker3D.png"
  bg_pixmap[PRELIGHT]    = "poker3D-light.png"
  bg_pixmap[ACTIVE]      = "poker3D-dark.png"
  bg_pixmap[SELECTED]    = "poker3D-dark.png"
  bg_pixmap[INSENSITIVE] = "poker3D-dark.png"

  base[NORMAL]          = "#D0C0A8"
  base[PRELIGHT]        = "#E6DBCB"
  base[ACTIVE]          = "#A57F54"
  base[SELECTED]        = "#7C4818"
  base[INSENSITIVE]     = "#E6E3DE"

  text[NORMAL]          = "#000000"
  text[PRELIGHT]        = "#000000"
  text[ACTIVE]          = "#ffffff"
  text[SELECTED]        = "#ffffff"
  text[INSENSITIVE]     = "#B0814D"

  engine "pixmap"
  {

    # Flat by default

    image
    {
      function          = BOX
    }

    # handle
    
    image
    {
      function          = HANDLE
      recolorable       = TRUE
      overlay_file      = "handle-h.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      orientation       = VERTICAL
    }
    image
    {
      function          = HANDLE
      overlay_file      = "handle-v.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      orientation       = HORIZONTAL
    }
     image
     {
       function         = SHADOW
       shadow           = ETCHED_IN
       recolorable      = TRUE
       file             = "gap.png"
       border           = { 2, 2, 2, 2 }
       stretch          = TRUE
     }
    image
     {
       function         = SHADOW
       shadow           = ETCHED_OUT
       recolorable      = TRUE
       file             = "gap.png"
       border           = { 2, 2, 2, 2 }
       stretch          = TRUE
     }
     image
     {
       function         = SHADOW_GAP
       recolorable      = TRUE
       file             = "gap.png"
       border           = { 2, 2, 2, 2 }
       stretch          = TRUE
       gap_start_file   = "gap-start.png"
       gap_start_border = { 2, 0, 2, 0 }
       gap_end_file     = "gap-end.png"
       gap_end_border   = { 0, 2, 2, 0 }
       gap_side         = TOP
     }
    image
    {
       function         = VLINE
       recolorable      = TRUE
       file             = "vline.png"
       border           = { 0, 0, 4, 4 }
       stretch          = TRUE
    }
    image
    {
      function         = HLINE
      recolorable      = TRUE
      file             = "hline.png"
      border           = { 4, 4, 0, 0 }
      stretch          = TRUE
    }

    # focus

    image
    {
      function          = FOCUS
      recolorable       = TRUE
      file              = "focus.png"
      border            = { 5, 5, 5, 5 }
      stretch           = TRUE
    }

    # arrows

    image
    {
      function          = ARROW
      state             = INSENSITIVE
      recolorable       = TRUE
      overlay_file      = "arrow-up-i.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = UP
    }
    image
    {
      function          = ARROW
      recolorable       = TRUE
      overlay_file      = "arrow-up.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = UP
    }
    image
    {
      function          = ARROW
      state             = INSENSITIVE
      recolorable       = TRUE
      overlay_file      = "arrow-down-i.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = DOWN
    }
    image
    {
      function          = ARROW
      recolorable       = TRUE
      overlay_file      = "arrow-down.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = DOWN
    }
    image
    {
      function          = ARROW
      state             = INSENSITIVE
      recolorable       = TRUE
      overlay_file      = "arrow-left-i.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = LEFT
    }
    image
    {
      function          = ARROW
      recolorable       = TRUE
      overlay_file      = "arrow-left.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = LEFT
    }
    image
    {
      function          = ARROW
      state             = INSENSITIVE
      recolorable       = TRUE
      overlay_file      = "arrow-right-i.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = RIGHT
    }
    image
    {
      function          = ARROW
      recolorable       = TRUE
      overlay_file      = "arrow-right.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = RIGHT
    }
  }
}

style "Poker3D-button"    = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = BOX
      detail            = "buttondefault"
      recolorable       = TRUE
      file              = "default.png"
      border            = { 8, 0, 8, 0 }
      stretch           = TRUE
    }
    image
    {
      function          = BOX
      shadow            = IN
      recolorable       = TRUE
      file              = "box-in.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
    }
    image
    {
      function          = BOX
      recolorable       = TRUE
      file              = "box-out.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
    }
  }
}

style "Poker3D-optionmenu"= "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = BOX
      recolorable       = TRUE
      file              = "box-out.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
    }
    image
    {
      function          = TAB
      state             = INSENSITIVE
      recolorable       = TRUE
      overlay_file      = "arrow-down-i.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
    }
    image
    {
      function          = TAB
      recolorable       = TRUE
      overlay_file      = "arrow-down.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
    }
  }
}

style "Poker3D-radiobutton"               = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = OPTION
      shadow            = OUT
      recolorable       = TRUE
      overlay_file      = "radio-n.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
    }
    image
    {
      function          = OPTION
      shadow            = IN
      recolorable       = TRUE
      overlay_file      = "radio-s.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
    }
  }
}

style "Poker3D-checkbutton"               = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = CHECK
      shadow            = OUT
      recolorable       = TRUE
      overlay_file      = "check-n.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
    }
    image
    {
      function          = CHECK
      shadow            = IN
      recolorable       = TRUE
      overlay_file      = "check-s.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
    }
  }
}

style "Poker3D-entry"     = "Poker3D-default"
{
  xthickness            = 0
  ythickness            = 0

  engine "pixmap"
  {
    image
    {
      function          = FOCUS
      recolorable       = TRUE
      file              = "shadow-in.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
    }
  }
}

style "Poker3D-spinbutton"= "Poker3D-entry"
{
  engine "pixmap"
  {
    image
    {
      function          = ARROW
    }
    image
    {
      function          = BOX
      detail            = "spinbutton_up"
      state             = INSENSITIVE
      recolorable       = TRUE
      file              = "spin-up-i.png"
      border            = { 5, 5, 2, 0 }
      stretch           = TRUE
    }
    image
    {
      function          = BOX
      detail            = "spinbutton_up"
      recolorable       = TRUE
      file              = "spin-up.png"
      border            = { 5, 5, 2, 0 }
      stretch           = TRUE
    }
    image
    {
      function          = BOX
      detail            = "spinbutton_down"
      state             = INSENSITIVE
      recolorable       = TRUE
      file              = "spin-down-i.png"
      border            = { 5, 5, 0, 10 }
      stretch           = TRUE
    }
    image
    {
      function          = BOX
      detail            = "spinbutton_down"
      recolorable       = TRUE
      file              = "spin-down.png"
      border            = { 5, 5, 0, 10 }
      stretch           = TRUE
    }
  }
}

style "Poker3D-scrollbar"
{
  engine "pixmap" 
  {

    image 
    {
      function          = SLIDER
      recolorable       = TRUE
      file              = "slider-h.png"
      border            = { 2, 2, 1, 1 }
      stretch           = TRUE
      orientation       = HORIZONTAL
    }
    image 
    {
      function          = SLIDER
      recolorable       = TRUE
      file              = "slider-v.png"
      border            = { 1, 1, 2, 2 }
      stretch           = TRUE
      orientation       = VERTICAL
    }
    image 
    {
      function          = STEPPER
      recolorable       = TRUE
      file              = "stepper-up.png"
      border            = { 5, 5, 5, 1 }
      stretch           = TRUE
      arrow_direction   = UP
    }
    image 
    {
      function          = STEPPER
      recolorable       = TRUE
      file              = "stepper-down.png"
      border            = { 5, 5, 1, 5 }
      stretch           = TRUE
      arrow_direction   = DOWN
    }
    image 
    {
      function          = STEPPER
      recolorable       = TRUE
      file              = "stepper-right.png"
      border            = { 1, 5, 5, 5 }
      stretch           = TRUE
      arrow_direction   = RIGHT
    }
    image 
    {
      function          = STEPPER
      recolorable       = TRUE
      file              = "stepper-left.png"
      border            = { 5, 1, 5, 5 }
      stretch           = TRUE
      arrow_direction   = LEFT
    }
  }
}

style "Poker3D-progressbar"               = "Poker3D-default"
{
  engine "pixmap" 
  {
    image
    {
      function          = BOX
      detail            = "trough"
      recolorable       = TRUE
      file              = "thumb.png"
      border            = { 1, 1, 1, 1 }
      stretch           = TRUE
    }
    image
    {
      function          = BOX
      detail            = "bar"
      recolorable       = TRUE
      file              = "progress.png"
      border            = { 0, 0, 0, 0 }
      stretch           = TRUE
    } 
  }
}

style "Poker3D-range"     = "Poker3D-default"
{
  engine "pixmap" 
  {
    image 
    {
      function          = BOX
      recolorable       = TRUE
      detail            = "trough"
      file              = "trough-h.png"
      border            = { 5, 5, 0, 0 }
      stretch           = TRUE
      orientation       = HORIZONTAL
    }
    image 
    {
      function          = BOX
      recolorable       = TRUE
      detail            = "trough"
      file              = "trough-v.png"
      border            = { 0, 0, 5, 5 }
      stretch           = TRUE
      orientation       = VERTICAL
    }
    image 
    {
      function          = SLIDER
      recolorable       = TRUE
      file              = "slider-h.png"
      border            = { 2, 2, 1, 1 }
      stretch           = TRUE
      overlay_file      = "thumb-grip-h.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      orientation       = HORIZONTAL
    }
    image 
    {
      function          = SLIDER
      recolorable       = TRUE
      file              = "slider-v.png"
      border            = { 1, 1, 2, 2 }
      stretch           = TRUE
      overlay_file      = "thumb-grip-v.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      orientation       = VERTICAL
    }
  }
}

style "Poker3D-menu"      = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = BOX
      detail            = "menu"
      file              = "shadow-menu.png"
      border            = { 1, 1, 1, 1 }
      stretch           = TRUE
    }
  }
}

style "Poker3D-menubar"   = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = BOX
      file              = "box-out.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
    }
  }
}

style "Poker3D-menuitem"  = "Poker3D-default"
{
  xthickness            = 4

  engine "pixmap"
  {
    image
    {
      function          = BOX
      recolorable       = TRUE
      file              = "box-out.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
    }
    image
    {
      function          = ARROW
      recolorable       = TRUE
      overlay_file      = "arrow-menu-right.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      arrow_direction   = RIGHT
    }
  }
}

style "Poker3D-tearoffmenuitem"           = "Poker3D-menuitem"
{
  engine "pixmap"
  {
    image
    {
      function          = ARROW
      file              = "arrow-menu-left.png"
      border            = { 5, 1, 4, 4 }
      stretch           = TRUE
      arrow_direction   = LEFT
    }
    image
    {
      function          = HLINE
      file              = "cuthere.png"
      border            = { 0, 0, 0, 0 }
      stretch           = TRUE
    }
  }
}

style "Poker3D-notebook"  = "Poker3D-default"
{
  engine "pixmap" 
  {

    image 
    {
      function          = BOX_GAP
      recolorable       = TRUE
      file              = "shadow-notebook-top.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
      gap_side          = TOP
    }
    image 
    {
      function          = BOX_GAP
      recolorable       = TRUE
      file              = "shadow-notebook-bottom.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
      gap_side          = BOTTOM
    }
    image 
    {
      function          = BOX_GAP
      recolorable       = TRUE
      file              = "shadow-notebook-left.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
      gap_side          = LEFT
    }
    image 
    {
      function          = BOX_GAP
      recolorable       = TRUE
      file              = "shadow-notebook-right.png"
      border            = { 4, 4, 4, 4 }
      stretch           = TRUE
      gap_side          = RIGHT
    }
    #image
    #{
    #  function          = BOX
    #  recolorable       = TRUE
    #  file              = "box-out.png"
    #  border            = { 4, 4, 4, 4 }
    #  stretch           = TRUE
    #  gap_side          = TOP
    #}
  }
}

style "Poker3D-treeview"  = "Poker3D-default"
{
  engine "pixmap"
  {
    # don't draw the focus around listitems
    image
    {
      function          = FOCUS
    }
  }
}

style "Poker3D-textview"  = "Poker3D-default"
{
  bg[NORMAL]            = "#ffffff"

  engine "pixmap"
  {
    # don't draw focus around textview
    image
    {
      function          = FOCUS
    }
  }
}

style "Poker3D-tooltips"  = "Poker3D-default"
{
  bg[NORMAL]            = "#E3D6C3"
}

style "Poker3D-ruler"     = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = BOX
      file              = "light.png"
      border            = { 0, 0, 0, 0 }
      stretch           = TRUE
    }
  }
}

style "Poker3D-handlebox" = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function = SHADOW
    }

    # vertical/horizontal handle are switched

    image
    {
      function          = HANDLE
      recolorable       = TRUE
      overlay_file      = "handle-v.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      orientation       = VERTICAL
    }
    image
    {
      function          = HANDLE
      overlay_file      = "handle-h.png"
      overlay_border    = { 0, 0, 0, 0 }
      overlay_stretch   = FALSE
      orientation       = HORIZONTAL
    }
  }
}

style "Poker3D-flat" = "Poker3D-default"
{
  engine "pixmap"
  {
    image
    {
      function          = SHADOW
    }
  }
}

class "GtkWidget"          style "Poker3D-default"
class "GtkButton"          style "Poker3D-button"
class "GtkRadioButton"     style "Poker3D-radiobutton"
class "GtkCheckButton"     style "Poker3D-checkbutton"
class "GtkOptionMenu"      style "Poker3D-optionmenu"
class "GtkEntry"           style "Poker3D-entry"
class "GtkOldEditable"     style "Poker3D-entry"
class "GtkSpinButton"      style "Poker3D-spinbutton"
class "GtkRuler"           style "Poker3D-ruler"
class "GtkScrollbar"       style "Poker3D-scrollbar"
class "GtkProgressBar"     style "Poker3D-progressbar"
class "GtkRange"           style "Poker3D-range"
class "GtkMenu"            style "Poker3D-menu"
class "GtkMenuBar"         style "Poker3D-menubar"
class "GtkItem"            style "Poker3D-menuitem"
class "GtkTearoffMenuItem" style "Poker3D-tearoffmenuitem"
class "GtkNotebook"        style "Poker3D-notebook"
class "GtkTextView"        style "Poker3D-textview"
class "GtkTreeView"        style "Poker3D-treeview"
class "GtkToolbar"         style "Poker3D-flat"
class "GtkHandleBox"       style "Poker3D-handlebox"
class "GtkEventBox"        style "Poker3D-flat"
class "GtkPaned"           style "Poker3D-handlebox"
widget "gtk-tooltips"      style "Poker3D-tooltips"
