#"MW-8 Gtk2 Theme style"
#Creation date: Fri 28 June 2013
#License: http://www.gnu.org/licenses/gpl-3.0.txt

gtk_color_scheme = "fg_color:#020002\nbase_color:#FFFFFF\nbg_color:#F6F6F6\nselected_bg_color:#B0DBF7\nselected_fg_color:#111111\ntext_color:#000000\ntooltip_bg_color:#121212\ntooltip_fg_color:#FFFFFF"
#B0DBF7#B5D5FF
gtk-icon-sizes ="gtk-button=16,16:gtk-large-toolbar=24,24:gtk-small-toolbar=16,16"

include "buttons.rc"
include "check-boxes.rc"
include "entry.rc"
include "menubar.rc"
include "notebooks.rc"
include "progressbars.rc"
include "radio.rc"
include "ruler.rc"
include "scrollbars.rc"
include "sliders.rc"
include "spin.rc"
include "statusbar.rc"

style "default"
	{
  #font_name = "Bold" # custom font settings (size, style and type: "10", "Bold", "Arial" or all together)
		GtkButton::default_border = { 2, 2, 2, 2 }
		GtkButton::default_outside_border = { 1, 1, 1, 1 }

		GtkCheckButton ::indicator-spacing = 4
		GtkRadioButton ::indicator-spacing = 4
		GtkCheckButton ::indicator-size = 15
		GtkRadioButton ::indicator-size = 15

		GtkMenu::vertical-padding = 4
		GtkMenu::horizontal-padding = 2
		GtkMenuItem::horizontal-padding = 0
		GtkMenuItem::toggle-spacing = 5
		#GtkMenuItem::right-justified = 0
		GtkCheckMenuItem::horizontal-padding = 3
		GtkMenuBar::internal-padding = 3

		GtkNotebook::initial-gap = 10
		GtkNotebook::tab-expand = TRUE

  		# arrow displacement fix here, at least trying
  		GtkOptionMenu::indicator-size = { 16, 16 }
  		GtkOptionMenu::indicator-spacing = { 2, 2, 2, 2 }
 		GtkComboBox::arrow-size = 16

		GtkPaned::handle_size = 9

##################################################
  	GtkStatusbar	::shadow_type 	= GTK_SHADOW_NONE
#  	GtkMenubar	::shadow_type 	= GTK_SHADOW_NONE
  	GtkToolbar	::shadow_type 	= GTK_SHADOW_OUT
  	GtkCList	::shadow_type	= GTK_SHADOW_IN ##

  	GtkFrame	::shadow_type 	= GTK_SHADOW_IN
  	GtkScrolledWindow::shadow_type = GTK_SHADOW_IN
  	GtkContainer	::shadow_type 	= GTK_SHADOW_ETCHED_IN #
  	GtkBox	::shadow_type 	= GTK_SHADOW_OUT ##
  	GtkPaned	::shadow_type 	= GTK_SHADOW_IN
###################################################

		GtkRange::slider_width = 12
		GtkRange::stepper_size = 24
		GtkRange::stepper_spacing = 0
		GtkRange::trough_border = 0
		#GtkRange::show-fill-level = 1

  		GtkScale::slider-length = 6
  		GtkScale::slider-width  = 13
  		GtkScale::slider-height  = 5 # good if same as slider-length
		#GtkScale::stepper_size = 24
  		GtkScale::trough-border = 0

		GtkScrollbar::has_backward_stepper = 1 # better show steppers for apps compatibility
		GtkScrollbar::has_secondary_forward_stepper = 0
		GtkScrollbar::has_forward_stepper = 1
		GtkScrollbar::has_secondary_backward_stepper = 0

		GtkScrollbar::min_slider_length = 24
		#GtkScrollbar::fixed-slider-length = 1

		GtkScrolledWindow::scrollbar-spacing = 1 # space between window items and scrollbar
		GtkScrolledWindow::scrollbars-within-bevel = 1 # whether to have the scroll in(1) or out(0) of the window

		GtkTreeView::even_row_color = "#F7F9FA" # "#EEF7FA" # "#FFFFFF" # "#D3E5FA" # "#EDF3FE"

		GtkWidget::interior_focus = 2
 		GtkWidget::focus_padding = 1

		base[ACTIVE] = @selected_bg_color
		base[INSENSITIVE] = shade (0.9, @base_color)
		base[NORMAL] = @base_color
		base[PRELIGHT] = @selected_bg_color
		base[SELECTED] = @selected_bg_color

		bg[ACTIVE] = @bg_color
		bg[INSENSITIVE] = @bg_color
		bg[NORMAL] = @bg_color
		bg[PRELIGHT] = @bg_color
		bg[SELECTED] = @selected_bg_color

		fg[ACTIVE] = @fg_color
		fg[INSENSITIVE] = shade (0.5,@bg_color)
		fg[NORMAL] = @fg_color
		fg[PRELIGHT] = @fg_color
		fg[SELECTED] = @selected_fg_color

		text[ACTIVE] = @selected_fg_color
		text[INSENSITIVE] = shade (0.5,@bg_color)
		text[NORMAL] = @text_color
		text[PRELIGHT] = @text_color # "#2b6b98"
		text[SELECTED] = @text_color # "#000000"

		#bg_pixmap[NORMAL] 	=  "fabric.gif"



  engine "pixmap"
  { 
# handles
    image
    {
      	function	= HANDLE
      	recolorable	= TRUE
      	file		= "Handles/divider-h.png"
        border		= { 1, 1, 2, 2 }
      	stretch 	= TRUE
      	overlay_file	= "Handles/handle-h.png"
      	overlay_stretch	= FALSE
      	orientation	= HORIZONTAL
    }
    image
    {
      	function	= HANDLE
      	recolorable	= TRUE
      	file		= "Handles/divider-v.png"
        border		= { 2, 2, 1, 1 }
      	stretch 	= TRUE
      	overlay_file	= "Handles/handle-v.png"
      	overlay_stretch	= FALSE
      	orientation	= VERTICAL
    }
# shadows
    image
    {
      function		= SHADOW
      shadow		= IN
      recolorable	= TRUE
      file		= "Shadows/shadow-in.png"
      border		= { 2, 2, 2, 2 }
      stretch		= TRUE
    }
    image
    {
       function		= SHADOW
       shadow		= OUT
       recolorable	= TRUE
       file		= "Shadows/shadow-out.png"
      border		= { 2, 2, 2, 2 }
       stretch		= TRUE
    }
    image
    {
       function		= SHADOW
       shadow		= ETCHED_IN
       recolorable	= TRUE
       file		= "Shadows/shadow-etched-in.png"
      border		= { 3, 3, 3, 3 }
       stretch		= TRUE
    }
    image
    {
       function		= SHADOW
       shadow		= ETCHED_OUT
       recolorable	= TRUE
       file		= "Shadows/shadow-etched-out.png"
      border		= { 2, 2, 2, 2 }
       stretch		= TRUE
    }
    image
    {
       function		= SHADOW
       shadow		= NONE
       recolorable	= TRUE
       file		= "Shadows/shadow-none.png"
      border		= { 0, 0, 0, 0 }
       stretch		= TRUE
    }
# shadow gaps
    image
    {
       	function		= SHADOW_GAP
       	recolorable	= TRUE
       	file		= "Handles/shadow-gap.png"
       	border		= { 2, 2, 2, 2 }
       	stretch		= TRUE
       	gap_file	= "Handles/frame-gap.png" # just under the label
       	gap_border	= { 0, 0, 0, 0  }
       	gap_start_file	= "Handles/frame-gap-start.png"
       	gap_start_border	= { 0, 0, 0, 0 }
       	gap_end_file	= "Handles/frame-gap-end.png"
       	gap_end_border	= { 0, 0, 0, 0 }
       	gap_side		= TOP
    }


# Paned widget

#      image
#      {
#         function        = BOX
#	 recolorable     = TRUE
#	 detail          = "paned"
#	 file            = "Others/bg-tiled.png"
#	 border          = { 0, 0, 0, 0 }
#	 stretch         = FALSE
#      }

# viewport

#      image
#      {
#         function        = FLAT_BOX
#	 recolorable     = TRUE
#	 detail          = "viewportbin"
#	 file            = "Others/stripes.png"
#	 stretch         = FALSE
#      }
# focus
    image
    {
      function		= FOCUS
      recolorable	= TRUE
      file		= "focus.png" # transparent image is better?
      border		= { 2, 2, 2, 2 }
      stretch		= TRUE
    }	
# tooltip
      #image
      #{
         #function        = FLAT_BOX
	 #recolorable     = TRUE
	 #detail          = "tooltip"
	 #file            = "Others/tooltip.png"
	 #border          = { 2, 2, 2, 2 }
	 #stretch         = TRUE
      #}
# arrows
    image
    {
      function		= ARROW
      state		= NORMAL
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-up.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= UP
    }
    image
    {
      function		= ARROW
      state		= PRELIGHT
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-up-prelight.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= UP
    }
    image
    {
      function		= ARROW
      state		= INSENSITIVE
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-up-insensitive.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= UP
    }
    image
    {
      function		= ARROW
      state		= NORMAL
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-down.png"
      overlay_border	= { 2, 2, 2, 2 }
      overlay_stretch	= FALSE
      arrow_direction	= DOWN
    }
    image
    {
      function		= ARROW
      state		= PRELIGHT
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-down-prelight.png"
      overlay_border	= { 2, 2, 2, 2 }
      overlay_stretch	= FALSE
      arrow_direction	= DOWN
    }
    image
    {
      function		= ARROW
      state		= ACTIVE
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-down-active.png"
      overlay_border	= { 2, 2, 2, 2 }
      overlay_stretch	= FALSE
      arrow_direction	= DOWN
    }
    image
    {
      function		= ARROW
      state		= INSENSITIVE
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-down-insensitive.png"
      overlay_border	= { 2, 2, 2, 2 }
      overlay_stretch	= FALSE
      arrow_direction	= DOWN
    }
    image
    {
      function		= ARROW
      state		= NORMAL
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-left.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= LEFT
    }
    image
    {
      function		= ARROW
      state		= PRELIGHT
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-left-prelight.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= LEFT
    }
    image
    {
      function		= ARROW
      state		= INSENSITIVE
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-left-insensitive.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= LEFT
    }
    image
    {
      function		= ARROW
      state		= NORMAL
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-right.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= RIGHT
    }
    image
    {
      function		= ARROW
      state		= PRELIGHT
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-right-prelight.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= RIGHT
    }
    image
    {
      function		= ARROW
      state		= INSENSITIVE
      recolorable	= TRUE
      overlay_file	= "Arrows/arrow-right-insensitive.png"
      overlay_border	= { 0, 0, 0, 0 }
      overlay_stretch	= FALSE
      arrow_direction	= RIGHT
    }
    image # used for dialog bg. in apps. like Inkscape 
    {
     function		= BOX
     recolorable	= TRUE
     file        	= "Others/null.png"
     border      	= { 2, 1, 2, 1 }
     stretch         	= TRUE
     }     
#    resize grip
     image
     {
	 function	= RESIZE_GRIP
	 detail		= "statusbar"
	 recolorable	= TRUE
	 overlay_file	= "Statusbar/resize.png"
	 overlay_border	= { 0, 0, 0, 0 }
	 overlay_stretch= FALSE
     }     
#    lines          
     image
     {
	 function	= VLINE
	 recolorable	= TRUE
	 file		= "Lines/line-v.png"
	 border		= { 0, 0, 0, 0 }
	 stretch	= TRUE
     }
     image
     {
	 function	= HLINE
	 recolorable	= TRUE
	 file		= "Lines/line-h.png"
	 border		= { 0, 0, 0, 0 }
	 stretch	= TRUE
     }
#   entry
    image
    {
      function		= BOX
      recolorable	= TRUE
      shadow		= IN
      state		= NORMAL
      file		= "Entry/entry-in.png"
      border		= { 3, 3, 3, 3 }
      stretch		= TRUE
    }
    image
    {
      function		= BOX
      recolorable	= TRUE
      shadow		= OUT
      state		= NORMAL
      file		= "Entry/text-entry.png"
      border		= { 3, 3, 3, 3 }
      stretch		= TRUE
    }	
    image
    {
      function		= SHADOW
      detail		= "entry"
      shadow		= IN
      recolorable	= FALSE
      file		= "Entry/text-entry.png"
      border		= { 3, 3, 3, 3 }
      stretch		= TRUE
    }
    image
    {
      function		= SHADOW
      detail		= "entry"
      shadow		= OUT
      recolorable	= FALSE
      file		= "Entry/text-entry-out.png"
      border		= { 2, 2, 2, 2 }
      stretch		= TRUE
    }

  }
}

class "GtkWidget"       	style "default"
class "GtkSeparator"    	style "default"
#####class "GtkStatusbar"		style "theme-default"
class "GtkWindow"      		style "default"
#widget "PanelDItemEditor" 	style "theme-default"
#####class "GtkHandleBox"    style "default"
#class "GtkMenu"    	style "theme-default"
#class "GtkSeparator"    style "theme-default"
class "GtkFrame"    	style "default"
#####class "GtkPaned"        style "default"

#widget_class "*.<GtkLabel>" style "default"
class "GtkPanel"       	style "default"
#widget_class "*.<GtkMenuItem>.<GtkLabel>" style "theme-default"

##############################################################################
class "GtkWidget" style "default"
##############################################################################
style "tooltip"
	{
  		xthickness	= 6
  		ythickness	= 4
		#font_name = "Bold" # custom font style
  		bg[NORMAL] = @tooltip_bg_color #"#121212" # "#F2E291" # tooltip background can be customized here
  		fg[NORMAL] = @tooltip_fg_color #"#ffffff"
	}
##############################################################################
style "panel-background" 
	{
  		bg_pixmap[NORMAL] = "panel.png"
  		bg_pixmap[PRELIGHT] = "panel.png"
  		bg_pixmap[ACTIVE] = "panel.png"
  		bg_pixmap[SELECTED] = "panel.png"
  		bg_pixmap[INSENSITIVE] = "panel.png"
	}
##############################################################################
style "panel-color" 
	{
  		fg[NORMAL] = @fg_color
  		fg[ACTIVE] = @fg_color
  		bg[NORMAL] = @bg_color
  		bg[PRELIGHT] = @bg_color
  		bg[ACTIVE] = @bg_color
	}
##############################################################################
style "menu"
{
  xthickness	= 1
  ythickness	= 1

  #font_name = "10" # custom font size

  #####fg[NORMAL] 	= @base_color
  #####text[NORMAL] = @base_color
  #fg[PRELIGHT] = @base_color
  #text[PRELIGHT] = @base_color
  #bg[NORMAL] = shade (0.3,@bg_color)
  #bg_pixmap[NORMAL] 	=  "squared-bg.gif"
   engine "pixmap"
   {
     image
     {
       function		= BOX
       recolorable    	= TRUE
       detail		= "menu"
       file		= "Menu/menu-bg.png"
       border		= { 2, 2, 2, 2 }
       stretch		=  TRUE
     }
     image
     {
	 function	= HLINE
	 recolorable	= TRUE
	 file		= "Lines/h-line.png"
	 border		= { 0, 0, 0, 0 }
	 stretch	= TRUE
     }
   }
}
##############################################################################
style "menubar-item"
{
  xthickness = 5
  ythickness = 3
  GtkCheckButton ::indicator-spacing = 4
  GtkRadioButton ::indicator-spacing = 4
  GtkImageMenuItem ::indicator-spacing = 4

  #font_name = "Bold" # custom font settings (one of these: "Arial", "Bold", "10" or all together)

# fg[NORMAL] 	= @base_color
# text[NORMAL] = @base_color
  #####fg[PRELIGHT] = @base_color
  #####text[PRELIGHT] = @base_color
  #fg[NORMAL] 	= "black"
   engine "pixmap"
   {
     image
     {
       function	= BOX
       recolorable  = TRUE
       detail	= "menu"
       file	= "Menu/menubar-selected-item.png"
       border	= { 2, 2, 2, 2 }
       stretch	=  TRUE
     }
   }
}
#widget_class "*MenuBar.*" style "menubar-item"
#class "*GtkMenuBar" style "menubar-item"
#########################################

style "menubar-item-fix"
{
	#font_name = "Bold"
	fg[NORMAL] = @text_color
}

widget_class "*.<GtkMenuBar>.<GtkItem>.<GtkLabel>" style "menubar-item-fix"

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

style "toolbar" = "default"
{
  xthickness	= 2
  ythickness	= 2

   engine "pixmap"
   {
     image
     {
       function		= BOX
       file		= "Others/toolbar-bg.png"
       border		= { 1, 1, 1, 2 }
       stretch		=  TRUE
     }
   }
}
##############################################################################
style "list" = "default"
{
  #font_name = "8" # custom font size
  xthickness = 0
  ythickness = 0
  GtkWidget::focus-padding = 0    

  fg[ACTIVE]    =  @bg_color
   engine "pixmap"
   {
#FOCUS
	image
	{
	border = {2, 2, 2, 2}
	file = "List/list-item-focus.png"
	function = FOCUS
	stretch = TRUE
	}
     image
     {
       function	= BOX
       recolorable  = TRUE
       state	= NORMAL
       file	= "List/list-tab-normal.png"
       border	= { 2, 2, 4, 2 }
       stretch	=  TRUE
     }
     image
     {
       function	= BOX
       recolorable  = TRUE
       state	= PRELIGHT
       file	= "List/list-tab-prelight.png"
       border	= { 2, 4, 2, 2 }
       stretch	=  TRUE
     }
     image
     {
       function	= BOX
       recolorable  = TRUE
       state	= ACTIVE
       file	= "List/list-tab-active.png"
       border	= { 2, 2, 4, 2 }
       stretch	=  TRUE
     }
     image
     {
       function	= BOX
       recolorable  = TRUE
       state	= SELECTED
       file	= "List/list-tab-selected.png"
       border	= { 2, 2, 4, 2 }
       stretch	=  TRUE
     }
     image
     {
       function	= BOX
       recolorable  = TRUE
       state	= INSENSITIVE
       file	= "List/list-tab-insensitive.png"
       border	= { 2, 2, 4, 2 }
       stretch	=  TRUE
     }
   }
}

widget_class "*<GtkTreeView>.<GtkButton>" 	style "list"
widget_class "*<GtkCTree>.<GtkButton>" 		style "list"
widget_class "*<GtkList>.<GtkButton>" 		style "list"
widget_class "*<GtkCList>.<GtkButton>" 		style "list"
widget_class "*.<GtkTreeView>.<GtkButton>*" 	style "list"
#widget_class "*.ETree.*" 			style "list"
#widget_class "*<GtkNotebook>*<GtkDrawingArea>" 	style "list"
#widget_class "*<GtkNotebook>*<GtkLayout>" 	style "list"
#widget_class "*<GtkNotebook>*<GtkViewport>" 	style "list"

##############################################################################
style "frame-title"
{
#	font_name = "Bold"
	fg[NORMAL] = "#0050EF" #mix (0.75, shade (0.55, @selected_bg_color), "#0093FF")
}

widget_class "*.<GtkFrame>.<GtkLabel>" style "frame-title"



################# HANDLES ###################x

style "handlebox"
{
  engine "pixmap"
  {
    image
    {
      function		= HANDLE
      state		= NORMAL
      recolorable	= TRUE
      file		= "Handles/divider-h.png"
      border		= { 3, 3, 3, 3 }
      stretch 		= TRUE
      overlay_file	= "Handles/handle-v.png"
      overlay_stretch	= FALSE
      orientation	= VERTICAL
    }
    image
    {
      function		= HANDLE
      state		= PRELIGHT
      recolorable	= TRUE
      file		= "Handles/divider-h-prelight.png"
      border		= { 3, 3, 3, 3 }
      stretch 		= TRUE
      overlay_file	= "Handles/handle-v-focused.png"
      overlay_stretch	= FALSE
      orientation	= VERTICAL
    }
    image
    {
      function		= HANDLE
      state		= NORMAL
      recolorable	= TRUE
      file		= "Handles/divider-v.png"
      border		= { 3, 3, 3, 3 }
      stretch 		= TRUE
      overlay_file	= "Handles/handle-h.png"
      overlay_stretch 	= FALSE
      orientation	= HORIZONTAL
    }
    image
    {
      function		= HANDLE
      state		= PRELIGHT
      recolorable	= TRUE
      file		= "Handles/divider-v-prelight.png"
      border		= { 3, 3, 3, 3 }
      stretch 		= TRUE
      overlay_file	= "Handles/handle-h-focused.png"
      overlay_stretch 	= FALSE
      orientation	= HORIZONTAL
    }
    image
    {
      function		= SHADOW
      shadow		= IN
      recolorable	= FALSE
      file		= "Shadows/shadow-in.png"
      border		= { 1, 1, 1, 1 }
      stretch		= TRUE
    }
  }
}

class "GtkHandleBox"    style "handlebox"
class "GtkPaned"       	style "handlebox"

#############################
##widget_class "*<GtkTreeView>.<GtkButton>" 	style "list"
##widget_class "*<GtkCTree>.<GtkButton>" 		style "list"
##widget_class "*<GtkList>.<GtkButton>" 		style "list"
##widget_class "*<GtkCList>.<GtkButton>" 		style "list"
##widget_class "*.<GtkTreeView>.<GtkButton>*" 	style "list"
#widget_class "*.ETree.*" 			style "list"
#widget_class "*<GtkNotebook>*<GtkDrawingArea>" 	style "list"
#widget_class "*<GtkNotebook>*<GtkLayout>" 	style "list"
#widget_class "*<GtkNotebook>*<GtkViewport>" 	style "list"

class "GtkMenu"	style "menu"
widget_class 	"*MenuBar.*MenuItem*"	style "menubar-item"

class "GtkToolbar" style "toolbar"
#class "*HandleBox" style "toolbar"
class "*Toolbar" style "toolbar"
class "GtkToolButton" style "toolbar"

class "GtkTooltip" style "tooltip"
widget "gtk-tooltip*" style "tooltip"
#
widget_class "*Panel*" style "panel-background"
widget "*PanelWidget*" style "panel-color"
widget "*PanelApplet*" style "panel-color"
widget "*Panel*" style "panel-color"
widget_class "*Panel*" style "panel-color"
class "*Panel*" style "panel-color"
class "*Tray*" style "panel-color"
class "*tray*" style "panel-color"

#class "GtkSpinButton" style "default"
#
#
