# "EPELSA"  theme for GTK+ 2.x by INVASIONWEB (http://invasionweb.com).
# Blue theme 
# Adapted to Ubuntu Natty by Joan Armengol
# last update : 2011, jun

#gtk_color_scheme = "fg_color:#fff\nbg_color:#142f5c\nbase_color:#556b80\ntext_color:#222\nselected_bg_color:#142f5c\nselected_fg_color:#fff\ntooltip_bg_color:#D5C1B6\ntooltip_fg_color:#000"
# Changed base color to white
gtk_color_scheme = "fg_color:#fff\nbg_color:#142f5c\nbase_color:#ffffff\ntext_color:#222\nselected_bg_color:#142f5c\nselected_fg_color:#fff\ntooltip_bg_color:#D5C1B6\ntooltip_fg_color:#000"
#gtk_color_scheme = "fg_color:#fff\nbg_color:#142f5c\nbase_color:#ffffff\ntext_color:#222\nselected_bg_color:#142f5c\nselected_fg_color:#fff\ntooltip_bg_color:#D5C1B6\ntooltip_fg_color:#000"

gtk-auto-mnemonics = 1 


style "default"
{
  xthickness 				= 2
  ythickness 				= 2
  GtkWidget::interior_focus		= 7
  GtkWidget::focus_padding		= 1
  GtkButton::default_border		= { 2, 2, 2, 2 }
  GtkButton::default_outside_border	= { 0, 0, 0, 0 }
  GtkRange::trough_border		= 0
  GtkRange::slider_width		= 40
  GtkRange::stepper_size		= 47
  GtkPaned::handle_size			= 6
  GtkScrollbar::min_slider_length	= 50
  GtkScrollbar::slider_width		= 30
  GtkCheckButton::indicator_size	= 24
  GtkCheckButton::indicator_spacing	= 3
  GtkMenuBar::internal_padding		= 1
  GtkOptionMenu::indicator_size		= { 15, 8 }
  GtkOptionMenu::indicator_spacing	= { 8, 2, 0, 0 }
  GtkStatusbar::shadow_type 		= GTK_SHADOW_NONE
  GtkSeparator::shadow_type 		= GTK_SHADOW_IN
  GtkComboBox::appears-as-list 		= 1
  #GtkComboBox::arrow-size	 	= 28


 	WnckTasklist::fade-overlay-rect = 0
	# The following line hints to gecko (and possibly other appliations)
	# that the entry should be drawn transparently on the canvas.
	# Without this, gecko will fill in the background of the entry.
	GtkEntry::honors-transparent-bg-hint = 1

        GtkEntry::progress-border = { 2, 2, 2, 2 }
	GtkMenuBar::window-dragging = 1

	GtkWidget::link-color = @selected_bg_color
	GtkWidget::visited-link-color = @text_color

	fg[NORMAL]        = @fg_color
	fg[PRELIGHT]      = @fg_color
	fg[SELECTED]      = @selected_fg_color
	fg[ACTIVE]        = @fg_color
	fg[INSENSITIVE]   = darker (@bg_color)

	bg[NORMAL]        = @bg_color
	bg[PRELIGHT]      = shade (1.02, @bg_color)
	bg[SELECTED]	  = @selected_bg_color
	bg[INSENSITIVE]   = @bg_color
	bg[ACTIVE]        = shade (0.9, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = mix (0.7, @selected_bg_color, @bg_color)
	base[SELECTED]    = @selected_bg_color
	base[INSENSITIVE] = @bg_color

	text[NORMAL]      = @text_color
	text[PRELIGHT]    = @text_color
	text[ACTIVE]      = @selected_fg_color
	text[SELECTED]    = @selected_fg_color
	text[INSENSITIVE] = darker (@bg_color)

  engine "pixmap"
  {
    image
    {
      function			= RESIZE_GRIP
      recolorable		= TRUE
      detail			= "statusbar"
      overlay_file		= "resize_grip.png"
      overlay_border		= {0,0,0,0}
      overlay_stretch		= FALSE
   }
    #handle
    image
	{
      function			= HANDLE
      recolorable		= TRUE
      overlay_file		= "handle-h.png"
      overlay_stretch		= FALSE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= HANDLE
      recolorable		= TRUE
      overlay_file		= "handle-v.png"
      overlay_stretch		= FALSE
      orientation		= VERTICAL
    }

    #shadow
    image
    {
      function			= SHADOW
      shadow			= IN
      recolorable		= FALSE
      file			= "shadow-in.png"
      border			= { 3, 3, 3, 3 }
      stretch			= TRUE
    }
    image
    {
      function			= SHADOW
      shadow			= OUT
      recolorable		= TRUE
      file			= "trans.png"
      border			= {2,2,2,2}
      stretch			= TRUE
    }
    image
    {
      function			= SHADOW
      shadow			= ETCHED_IN
      recolorable		= TRUE
      file			= "trans.png"
      border			= {2,2,2,2}
      stretch			= TRUE
    }
    image
    {
      function			= SHADOW
      shadow			= ETCHED_OUT
      recolorable		= TRUE
      file			= "trans.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
    }
    image
    {
      function			= SHADOW_GAP
      recolorable		= TRUE
      file			= "shadow-gap.png"
      border			= {1,1,1,1}
      stretch			= TRUE
      gap_start_file		= "shadow-gap-top.png"
      gap_start_border		= {0,0,1,0}
      gap_end_file		= "shadow-gap-top.png"
      gap_end_border		= {0,0,1,0 }
      gap_side			= TOP
    }
    image
    {
      function			= VLINE
      recolorable		= TRUE
      file			= "trans.png"
      border			= { 1, 1, 0, 0 }
      stretch			= TRUE
    }
    image
    {
      function			= HLINE
      recolorable		= TRUE
      file			= "trans.png"
      border			= { 0, 0, 1, 1 }
      stretch			= TRUE
    }
    #focus
    image
    {
      function			= FOCUS
      recolorable		= TRUE
      file			= "focus.png"
      border			= {13,13,13,13}
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      file        		= "toolbar.png"
      border      		= { 3, 3, 3, 3 }
      stretch			= TRUE
    }
  }
}

style "button"			= "default"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      detail			= "buttondefault"
      recolorable		= TRUE
      file			= "button-normal.png"
      border			= { 10, 10, 10, 10 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      state			= ACTIVE
      file			= "button-pressed.png"
      border			= { 10, 10, 10, 10 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      state			= INSENSITIVE
      file			= "button-insensitive.png"
      border			= { 10, 10, 10, 10  }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      file			= "button-normal.png"
      border			= {10,10,10,10}
      stretch			= TRUE
    }
  }
}

style "togglebutton"
{
  engine "pixmap"
  {

    image
    {
      function			= BOX
      recolorable		= TRUE
      shadow			= IN
      file			= "button-toggle.png"
      border			= { 10, 10, 10, 10 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      shadow			= OUT
      file			= "button-normal.png"
      border			= { 10, 10, 10, 10 }
      stretch			= TRUE
    }
    image
    {
      function			= FOCUS
      recolorable		= TRUE
      file			= "trans.png"
      border			= { 12, 12, 12, 12 }
      stretch			= TRUE
    }
  }
}

style "toolbarbutton"
{
  engine "pixmap"
  {
    image
    {
      function        		= BOX
      recolorable		= TRUE
      state			= NORMAL
      file            		= "button-normal.png"
      border          		= { 8, 8, 8, 8 }
      stretch         		= TRUE
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= PRELIGHT
      file			= "button-prelight.png"
      border			= { 8, 8, 8, 8 }
      stretch			= TRUE
    }
    image
    {
      function        		= BOX
      recolorable		= TRUE
      state			= ACTIVE
      file            		= "button-pressed.png"
      border          		= { 8, 8, 8, 8 }
      stretch         		= TRUE
    }
    image
    {
      function        		= BOX
      recolorable		= TRUE
      state			= INSENSITIVE
      file            		= "button-insensitive.png"
      border          		= { 8, 8, 8, 8 }
      stretch         		= TRUE
    }
  }
}

style "checkradiobutton" {
  engine "pixmap" {
    image
	{
	function		= FLAT_BOX
	recolorable		= TRUE
	file			= "trans.png"
	border			= {3,3,3,3}
	stretch			= TRUE
    }
    image
    {
      function			= FOCUS
    }
    }
}



style "optionmenu"		= "default"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= NORMAL
      file			= "button-normal.png"
      border			= { 12, 23, 10, 11 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= ACTIVE
      file			= "button-normal.png"
      border			= { 12, 23, 10, 11 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= INSENSITIVE
      file			= "button-insensitive.png"
      border			= { 4, 4, 4, 4}
      stretch			= TRUE
    }
    image
    {
      function			= TAB
      recolorable		= TRUE
      overlay_file		= "option-menu.png"
      overlay_stretch		= FALSE
    }
  }
}


style "combobox"
{
engine "pixmap" {
 image
    {
      function			= BOX
      recolorable		= TRUE
      state			= NORMAL
      file			= "button-combo.png"
      border			= {0,0,0,0}
      stretch			= TRUE
    }
image
    {
      function			= BOX
      recolorable		= TRUE
      state			= ACTIVE
      file			= "button-combo.png"
      border			= {0,0,0,0}
      stretch			= TRUE
    }
image
    {
      function			= BOX
      recolorable		= TRUE
      state			= SELECTED
      file			= "button-combo.png"
      border			= {0,0,0,0}
      stretch			= TRUE
    }
image
    {
      function			= BOX
      recolorable		= TRUE
      state			= INSENSITIVE
      file			= "button-combo.png"
      border			= {0,0,0,0}
      stretch			= TRUE
    }
image
    {
      function			= BOX
      recolorable		= TRUE
      state			= PRELIGHT
      file			= "button-combo.png"
      border			= {0,0,0,0}
      stretch			= TRUE
    }
image
    {
      function			= VLINE
      recolorable		= TRUE
      file			= "trans.png"
      stretch			= TRUE
    }
    image
    {
      function			= FOCUS
    }
  }
}



style "radiobutton"		= "default"
{
  engine "pixmap"
  {
    image
    {
      function			= OPTION
      shadow			= OUT
      recolorable		= TRUE
      overlay_file		= "option1.png"
      #overlay_border		= { 0, 0, 0, 0 }
      overlay_stretch		= FALSE
    }
    image
    {
      function			= OPTION
      shadow			= IN
      recolorable		= TRUE
      overlay_file		= "option2.png"
      #overlay_border		= { 0, 0, 0, 0 }
      overlay_stretch		= FALSE
    }
  image
    {
     function			= OPTION
     shadow			= ETCHED_IN
     recolorable		= TRUE
     overlay_file		= "option3.png"
     #overlay_border		= { 0, 0, 0, 0 }
     overlay_stretch		= FALSE
     }
  }
}


style "checkbutton"		= "default"
{
  engine "pixmap"
  {
    image
    {
      function			= CHECK
      shadow			= OUT
      recolorable		= TRUE
      overlay_file		= "check1.png"
      overlay_border		= { 0, 0, 0, 0 }
      overlay_stretch		= FALSE
    }
    image
    {
      function			= CHECK
      shadow			= IN
      recolorable		= TRUE
      overlay_file		= "check2.png"
      overlay_border		= { 0, 0, 0, 0 }
      overlay_stretch		= FALSE
    }
    image
    {
     function			= CHECK
     shadow			= ETCHED_IN
     recolorable		= TRUE
     overlay_file		= "check3.png"
     overlay_border		= { 0, 0, 0, 0 }
     overlay_stretch		= FALSE
    }
  }
}

#####################################################
#     Text Entries
#####################################################
style "entry"
{
  #Colores Fondo
  bg[NORMAL]        = "#142f5c"
  bg[ACTIVE]        = "#142f5c"
  bg[SELECTED]      = "#142f5c"
  bg[INSENSITIVE]   = "#142f5c"
  #Colores Fondo Formularios
  base[ACTIVE]      = "#556b80"
  base[NORMAL]      = "#142f5c"
  base[PRELIGHT]    = "#142f5c"
  base[INSENSITIVE] = "#142f5c"
  base[SELECTED]    = "#234a71"
#TEXTO
  text[INSENSITIVE] = "#222"
  text[SELECTED]    = "#fff"
  text[ACTIVE]      = "#222"
  text[PRELIGHT]    = "#222"
  text[NORMAL]	    = "#222"

  engine "pixmap"
  {
    image
    {
      function			= FLAT_BOX
      recolorable		= TRUE
      state			= INSENSITIVE
      detail			= "entry_bg"
      file			= "text_entry_insensitive.png"
      border			= {6,6,6,6 }
      stretch			= TRUE
    }
    image
    {
      function			= FLAT_BOX
      recolorable		= TRUE
      state			= NORMAL
      detail			= "entry_bg"
      file			= "text_entry.png"
      border			= {6,6,6,6 }
      stretch			= TRUE
    }
    image
    {
      function			= FLAT_BOX
      recolorable		= TRUE
      state			= SELECTED
      detail			= "entry_bg"
      file			= "out_sel.png"
      border			= { 1,1,8,8 }
      stretch			= TRUE
    }
    image
    {
      function			= SHADOW
      recolorable		= TRUE
      shadow			= IN
      file			= "trans.png"
      border			= { 1,1,1,1 }
      stretch			= TRUE
    }
  }
}
style "spinbutton"
{
    xthickness 				= 2
    ythickness 				= 8
    GtkWidget::focus-line-width		= 0
    GtkWidget::interior-focus		= 0
  engine "pixmap"
  {
    image
    {
      function			= ARROW
    }
    image
    {
      function			= BOX
      state 			= NORMAL
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-up.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= BOX
      state 			= PRELIGHT
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-up.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= BOX
      state 			= ACTIVE
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-up.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= BOX
      state 			= INSENSITIVE
      detail			= "spinbutton_up"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-up.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= BOX
      state 			= NORMAL
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-down.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= BOX
      state 			= PRELIGHT
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-down.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= BOX
      state 			= ACTIVE
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-down.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= BOX
      state 			= INSENSITIVE
      detail			= "spinbutton_down"
      recolorable		= TRUE
      file			= "spin.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
      overlay_file		= "spin-down.png"
      overlay_stretch	= FALSE
    }
    image
    {
      function			= FOCUS
    }
  }
}

style "spinbutton-notebook"	= "spinbutton"
{
  #Colores Fondo
  bg[NORMAL]        = "#133B66"
  bg[ACTIVE]        = "#133B66"
  bg[SELECTED]      = "#133B66"
  bg[INSENSITIVE]   = "#133B66"
  #Colores Fondo Formularios
  base[ACTIVE]      = "#133B66"
  base[NORMAL]      = "#133B66"
  base[PRELIGHT]    = "#133B66"
  base[INSENSITIVE] = "#133B66"
  base[SELECTED]    = "#133B66"
  engine "pixmap"
  {
  }
}
style "scrollbar"
{
  engine "pixmap"
  {

    image
    {
      function			= BOX
      recolorable		= TRUE
      detail			= "trough"
      file			= "shadow-out.png"
      border			= {2,2,2,2}
      stretch			= TRUE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      detail			= "trough"
      file			= "shadow-out.png"
      border			= {3,3,3,3}
      stretch			= TRUE
      orientation		= VERTICAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= NORMAL
      file			= "slider-h.png"
      border			= {4,4,4,4}
      stretch			= TRUE
      orientation		= HORIZONTAL
      overlay_file		= "trans.png"
      overlay_stretch		= FALSE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= PRELIGHT
      file			= "slider-h.png"
      border			= {4,4,4,4}
      stretch			= TRUE
      orientation		= HORIZONTAL
      overlay_file		= "trans.png"
      overlay_stretch		= FALSE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= INSENSITIVE
      file			= "slider-h.png"
      border			= {4,4,4,4}
      stretch			= TRUE
      orientation		= HORIZONTAL
      overlay_file		= "trans.png"
      overlay_stretch		= FALSE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= NORMAL
      file			= "slider-v.png"
      border			= { 4, 4, 4, 4 }
      stretch			= TRUE
      orientation		= VERTICAL
      overlay_file		= "trans.png"
      overlay_stretch		= FALSE
      orientation		= VERTICAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= PRELIGHT
      file			= "slider-v.png"
      border			= {4,4,4,4}
      stretch			= TRUE
      orientation		= VERTICAL
      overlay_file		= "trans.png"
      overlay_stretch		= FALSE
      orientation		= VERTICAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= INSENSITIVE
      file			= "slider-v.png"
      border			= {4,4,4,4}
      stretch			= TRUE
      orientation		= VERTICAL
      overlay_file		= "trans.png"
      overlay_stretch		= FALSE
      orientation		= VERTICAL
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= NORMAL
      file			= "stepper-up.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= UP
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= INSENSITIVE
      file			= "stepper-up-insensitive.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= UP
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= PRELIGHT
      file			= "stepper-up.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= UP
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= ACTIVE
      file			= "stepper-up-pressed.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= UP
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= NORMAL
      file			= "stepper-down.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= DOWN
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= INSENSITIVE
      file			= "stepper-down-insensitive.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= DOWN
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= PRELIGHT
      file			= "stepper-down.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= DOWN
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= ACTIVE
      file			= "stepper-down-pressed.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= DOWN
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= NORMAL
      file			= "stepper-right.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= RIGHT
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= INSENSITIVE
      file			= "stepper-right-insensitive.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= RIGHT
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= PRELIGHT
      file			= "stepper-right.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= RIGHT
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= ACTIVE
      file			= "stepper-right-pressed.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= RIGHT
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= NORMAL
      file			= "stepper-left.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= LEFT
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= INSENSITIVE
      file			= "stepper-left-insensitive.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= LEFT
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= PRELIGHT
      file			= "stepper-left.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= LEFT
    }
    image
    {
      function			= STEPPER
      recolorable		= TRUE
      state			= ACTIVE
      file			= "stepper-left-pressed.png"
      border			= {0,0,0,0}
      stretch			= TRUE
      arrow_direction		= LEFT
    }
  }
}

style "progressbar"		= "default"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      detail			= "trough"
      recolorable		= TRUE
      file				= "blue.png"
      stretch			= FALSE
      overlay_file		= "progressbar-bg.png"
      overlay_border	= {6,6,6,6}
      overlay_stretch	= TRUE
    }
    image
    {
      function			= BOX
      detail			= "bar"
      recolorable		= TRUE
      file				= "progressbar.png"
      border			= {5,5,5,5}
      stretch			= TRUE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= BOX
      detail			= "bar"
      recolorable		= TRUE
      file				= "progressbar.png"
      border			= { 5, 5, 5, 5 }
      stretch			= TRUE
      orientation		= VERTICAL
    }
  }
}
style "progressbar-notebook"	= "progressbar"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      detail			= "trough"
      recolorable		= TRUE
      file			= "blue2.png"
      stretch			= FALSE
      overlay_file		= "progressbar-bg.png"
      overlay_border		= {6,6,6,6}
      overlay_stretch		= TRUE
    }
  }
}


style "range"			= "default"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= ACTIVE
      detail			= "trough"
      file			= "progressbar-bg.png"
      border			= {6,6,6,6}
      stretch			= TRUE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= INSENSITIVE
      detail			= "trough"
      file			= "progressbar-bg.png"
      border			= {6,6,6,6}
      stretch			= TRUE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      state			= ACTIVE
      detail			= "trough"
      file			= "progressbar-bg.png"
      border			= {6,6,6,6}
      stretch			= TRUE
      orientation		= VERTICAL
    }
    image
    {
      function			= BOX
      recolorable		= TRUE
      detail			= "trough"
      file			= "progressbar-bg.png"
      border			= {6,6,6,6}
      stretch			= TRUE
      orientation		= VERTICAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= NORMAL
      file			= "slider-range.png"
      border			= {2,2,2,2}
      stretch			= TRUE
      #overlay_file		= "thumb-grip-h.png"
      #overlay_stretch		= FALSE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
     state           		= PRELIGHT
      file			= "slider-range.png"
      border			= {2,2,2,2}
      stretch			= TRUE
      #overlay_file		= "thumb-grip-h.png"
      #overlay_stretch		= FALSE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= INSENSITIVE
      file			= "slider-range.png"
      border			= {2,2,2,2}
      stretch			= TRUE
      #overlay_file		= "thumb-grip-h.png"
      #overlay_stretch		= FALSE
      orientation		= HORIZONTAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= NORMAL
      file			= "slider-range.png"
      border			= {2,2,2,2}
      stretch			= TRUE
      #overlay_file		= "thumb-grip-v.png"
      #overlay_stretch		= FALSE
      orientation		= VERTICAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
     state           		= PRELIGHT
      file			= "slider-range.png"
      border			= {2,2,2,2}
      stretch			= TRUE
      #overlay_file		= "thumb-grip-v.png"
      #overlay_stretch		= FALSE
      orientation		= VERTICAL
    }
    image
    {
      function			= SLIDER
      recolorable		= TRUE
      state           		= INSENSITIVE
      file			= "slider-range.png"
      border			= {2,2,2,2}
      stretch			= TRUE
      #overlay_file		= "thumb-grip-v.png"
      #overlay_stretch		= FALSE
      orientation		= VERTICAL
    }
    image
    {
      function			= FOCUS
    }
  }
}


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


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


style "menuitem"		= "default"
{
  xthickness			= 4
  engine "pixmap"
  {
    image
    {
      function			= BOX
      recolorable		= TRUE
      file			= "menu.png"
      border			= { 3, 3, 3, 3 }
      stretch			= TRUE
    }
  }
}


style "tearoffmenuitem"		= "menuitem"
{
  engine "pixmap"
  {
  }
}


style "notebook"		= "default"
{

  engine "pixmap"
    {
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	state			= ACTIVE
	file			= "ext-top.png"
	border			= { 4, 4, 4, 4 }
	stretch			= TRUE
	gap_side		= BOTTOM
      }
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	state			= ACTIVE
	file			= "ext-bottom.png"
	border			= {  4, 4, 4, 4 }
	stretch			= TRUE
	gap_side		= TOP
      }
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	state			= ACTIVE
	file			= "ext-right.png"
	border			= {  4, 4, 4, 4 }
	stretch			= TRUE
	gap_side		= LEFT
      }
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	state			= ACTIVE
	file			= "ext-left.png"
	border			= {0,0,0,0}
	stretch			= TRUE
	gap_side		= RIGHT
      }
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	file			= "extension-top.png"
	border			= { 4, 4, 4, 4 }
	stretch			= TRUE
	gap_side		= BOTTOM
      }
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	file			= "extension-bottom.png"
	border			= { 4, 4, 4, 4 }
	stretch			= TRUE
	gap_side		= TOP
      }
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	file			= "extension-left.png"
	border			= {6,6,6,6}
	stretch			= TRUE
	gap_side		= RIGHT
      }
    image
      {
        function		= EXTENSION
	recolorable		= TRUE
	file			= "extension-right.png"
	border			= {  4, 4, 4, 4 }
	stretch			= TRUE
	gap_side		= LEFT
      }
#
# How to draw boxes with a gap on one side (ie the page of a notebook)
#
    image
      {
        function		= BOX_GAP
	recolorable		= TRUE
	file			= "notebook.png"
	border			= {6,6,6,6 }
	stretch			= TRUE
	gap_file		= "gap_top.png"
	gap_border		= { 3, 2, 1, 1 }
	gap_start_file		= "trans.png"
	gap_end_file		= "trans.png"
	gap_side		= TOP
      }
    image
      {
        function		= BOX_GAP
	recolorable		= TRUE
	file			= "notebook.png"
	border			= {6,6,6,6 }
	stretch			= TRUE
	gap_file		= "gap_bottom.png"
	gap_border		= { 2, 1, 1, 1 }
	gap_start_file		= "trans.png"
	gap_end_file		= "trans.png"
	gap_side		= BOTTOM
      }
    image
      {
        function		= BOX_GAP
	recolorable		= TRUE
	file			= "notebook.png"
	border			= {6,6,6,6 }
	stretch			= TRUE
	gap_file		= "gap_left.png"
	gap_border		= {0,0,0,0}
	gap_start_file		= "trans.png"
	gap_end_file		= "trans.png"
	gap_side		= LEFT
      }
    image
      {
        function		= BOX_GAP
	recolorable		= TRUE
	file			= "notebook.png"
	border			= {6,6,6,6 }
	stretch			= TRUE
	gap_file		= "gap_right.png"
	gap_border		= { 1, 1, 2, 1 }
	gap_start_file		= "trans.png"
	gap_end_file		= "trans.png"
	gap_side		= RIGHT
      }
#
# How to draw the box of a notebook when it isnt attached to a tab
#
    image
      {
        function		= BOX
	recolorable		= TRUE
	file			= "notebook.png"
	border			= {6,6,6,6 }
	stretch			= TRUE
	gap_side		= TOP
      }
    image
    {
      function			= FOCUS
    }
  }
}


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


style "textview"		= "default"
{
  bg[NORMAL]			= "#888888"

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


style "tooltips"		= "default"
{
  bg[NORMAL]			= "#888888"
}


style "ruler"			= "default"
{
  engine "pixmap" {
    image
      {
        function		= BOX
	recolorable		= TRUE
	detail			= "vruler"
	file			= "ruler-v.png"
	border			= { 3, 3, 3, 3 }
	stretch			= TRUE
      }
    image
      {
        function		= BOX
	recolorable		= TRUE
	detail			= "hruler"
	file			= "ruler-h.png"
	border			= { 3, 3, 3, 3 }
	stretch			= TRUE
      }
  }
}


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

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


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


style "list-header"
{

   #ythickness			= 0
   GtkTreeView::odd_row_color	= "#f0efe9"
   GtkTreeView::even_row_color	= "#fff"  # normal

  engine "pixmap"
  {
    image
    {
      function     	   	= BOX
      recolorable		= TRUE
      state			= NORMAL
      file            		= "list_header.png"
      border          		= { 2, 2, 2, 2 }
      stretch         		= TRUE
    }
    image
    {
      function      	 	= BOX
      recolorable		= TRUE
      state			= PRELIGHT
      file            		= "list_header.png"
      border       	   	= { 2, 2, 2, 2 }
      stretch       	  	= TRUE
    }
    image
    {
      function     	   	= BOX
      recolorable		= TRUE
      state			= ACTIVE
      file			= "list_header-pressed.png"
      border          		= { 2, 2, 2, 2}
      stretch        	 	= TRUE
    }
    image
    {
      function      	  	= BOX
      recolorable		= TRUE
      state			= SELECTED
      file			= "list_header.png"
      border        	  	= { 2, 2, 2, 2 }
      stretch       	 	= TRUE
    }
    image
    {
      function			= FOCUS
    }
  }
}

style "unstyle"
{
  engine ""
  {
  }
}
style "SPbutton"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      shadow			= IN
      recolorable		= TRUE
      file			= "shadow-out.png"
      border			= { 2, 2, 2, 2 }
      stretch			= TRUE
    }
    image
    {
      function			= BOX
    }
  }
}


style "panelbg"
{
  xthickness            	= 1
  ythickness            	= 1
  #bg_pixmap[NORMAL]		= "panel_bg.png"
}




style "panelbuttons"		= "default"
{
  engine "pixmap"
  {
    image
    {
      function			= BOX
      detail			= "buttondefault"
      recolorable		= TRUE
      file			= "button-normal.png"
      border			= {3,3,3,3}
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      state			= PRELIGHT
      recolorable		= TRUE
      file			= "button-normal.png"
      border			= {3,3,3,3}
      stretch			= TRUE
    }
    image
    {
      function			= BOX
      state			= ACTIVE
      file			= "button-pressed.png"
      border			= {3,3,3,3}
      stretch			= TRUE
    }
    image
   {
     function			= BOX
     state			= INSENSITIVE
     file			= "button-insensitive.png"
     border			= {3,3,3,3}
     stretch			= TRUE
    }
    image
    {
      function			= BOX
      file			= "button-normal.png"
      border			= {3,3,3,3}
      stretch			= TRUE
    }
  }
}


style "paneltogglebutton"
{
   engine "pixmap" {

    image
      {
        function      		= BOX
	recolorable 		= TRUE
	shadow        		= IN
	file            	= "button-pressed.png"
	border          	= {3,3,3,3}
	stretch         	= TRUE
      }
    image
      {
        function        	= BOX
	recolorable     	= TRUE
	shadow          	= OUT
	file            	= "button-normal.png"
	border          	= {3,3,3,3}
	stretch         	= TRUE
      }
  }
}

style "notebokentry"		= "entry"
{
  #Colores Fondo Formularios
  base[ACTIVE]			= "#133b66"
  base[NORMAL]			= "#133b66"
  base[PRELIGHT]		= "#133b66"
  base[INSENSITIVE]		= "#133b66"
  base[SELECTED]		= "#133b66"
}


class "*Panel*"				    style "panelbg"
class "GtkWidget"			    style "default"
class "GtkButton"			    style "button"
class "GtkToggleButton"			    style "togglebutton"
class "GtkRadioButton"			    style "radiobutton"
class "GtkCheckButton"			    style "checkradiobutton"

widget_class "*Tool*GtkButton"		    style "toolbarbutton"
widget_class "*Tool*GtkToggleButton"	    style "toolbarbutton"
widget_class "*List"			    style "list-header"
widget_class "*GtkTree*"		    style "list-header"
widget_class "*GtkCList"		    style "list-header"


class "GtkRadioMenuItem"		    style "radiobutton"
class "GtkCheckButton"			    style "checkbutton"
class "GtkCheckMenuItem"		    style "checkbutton"
class "GtkOptionMenu"			    style "optionmenu"
widget_class "*Combo*"			    style "combobox"

class "GtkEntry"			    style "entry"
class "GtkOldEditable"			    style "entry"
class "GtkSpinButton"			    style "spinbutton"
class "GtkRuler"			    style "ruler"
class "GtkScrollbar"			    style "scrollbar"
class "GtkProgressBar"			    style "progressbar"

class "GtkRange"			    style "range"
class "GtkMenu"				    style "menu"
class "GtkMenuBar"			    style "menubar"
class "GtkItem"				    style "menuitem"

class "GtkTearoffMenuItem"		    style "tearoffmenuitem"
class "GtkNotebook"			    style "notebook"
#class "GtkTextView"			    style "textview"
#class "GtkTreeView"			    style "treeview" # list-header
class "GtkToolbar"			    style "flat"
class "GtkHandleBox"			    style "handlebox"

class "GtkEventBox"			    style "flat"
class "GtkPaned"			    style "handlebox"
class "SPButton"			    style "SPbutton"
widget "gtk-tooltips"			    style "tooltips"


class "SPColorSlider"			    style "unstyle"







widget_class "*Notebook*Entry"		    style "notebokentry"
widget_class "*Notebook*GtkProgressBar"	    style "progressbar-notebook"

widget_class "*Notebook*SpinButton"	    style "spinbutton-notebook"

widget_class "*Panel*GtkToggleButton"	    style "paneltogglebutton"
widget_class "*Panel*GtkButton"		    style "panelbuttons"

#Carga el listado de iconos
include "iconrc"

