# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#
# include "rc-file"
#
# style <name> [= <name>]
# {
#   <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>
# Here's a good reference to the pixmap engine: https://wiki.gnome.org/Attic/GnomeArt/Tutorials/GtkEngines/PixmapEngine
# GIMP Widgets: http://developer.gimp.org/api/2.0/libgimpwidgets/index.html
# Another guide to gtkrc: http://orford.org/gtk/
# GTK widgets: https://developer.gnome.org/gtk2/2.24/

# Named colors from https://www.ncl.ucar.edu/Document/Graphics/named_colors.shtml
# colour control: https://wiki.gnome.org/Attic/GnomeArt/Tutorials/GtkThemes/SymbolicColors
gtk_color_scheme = "fg_color:midnightblue"
gtk_color_scheme = "bg_color:hotpink"
gtk_color_scheme = "base_color:cadetblue"
gtk_color_scheme = "text_color:palegreen"
gtk_color_scheme = "selected_bg_color:slateblue"
gtk_color_scheme = "selected_fg_color:sienna1"
gtk_color_scheme = "tooltip_bg_color:green"
gtk_color_scheme = "tooltip_fg_color:black"

# darker is equivalent to shade(0.7, colour)
# lighter is equivalent to shade(1.3, @bg_color)
style "gimp-default-style"
{
  # bg is the background
  bg[NORMAL]		= @bg_color
  bg[ACTIVE]		= shade (1.8, @bg_color)
  bg[PRELIGHT]		= lighter (@bg_color)        
  bg[INSENSITIVE]	= lighter (@bg_color)
  bg[SELECTED]		= shade (1.8, @bg_color)

  # fg is foreground - i.e. font colour
  fg[NORMAL]		= @fg_color
  fg[ACTIVE]		= shade (1.8, @fg_color)
  fg[PRELIGHT]		= lighter (@fg_color)
  fg[INSENSITIVE]	= lighter (@fg_color)
  fg[SELECTED]		= shade (1.8, @fg_color)

  # base is the background for editable text
  base[NORMAL]		= @base_color
  base[ACTIVE]		= shade (1.8, @base_color)
  base[PRELIGHT]	= lighter (@base_color)
  base[INSENSITIVE]	= lighter (@base_color)
  base[SELECTED]	= darker (@base_color)  

  # text is the font colour of editable text
  text[NORMAL]		= @text_color
  text[ACTIVE]		= shade (1.8, @text_color)
  text[PRELIGHT]	= lighter (@text_color)
  text[INSENSITIVE]	= lighter (@text_color)
  text[SELECTED]	= shade (1.8, @text_color)
  
  bg_pixmap[NORMAL] = "bg_hole.png"

  # Pango font specifier: http://www.pygtk.org/pygtk2reference/class-pangofontdescription.html
  # font_name = "times new roman, bold 10"
  font_name = "sans, 10"

  # Sets the size of check and radio buttons - only works if their overlays are set to stretch
  GtkCheckButton ::indicator-size = 14          # only seems to work for GIMP 2.8
  
  # Sets the size of radio buttons only (radio buttons are a sub-set of checkbuttons)
  GtkRadioButton ::indicator-size = 14          # only seems to work for GIMP 2.8
  
}
class "GtkWidget" style "gimp-default-style"  # style everything that derives from a GtkWidget with the default style

include "rc_buttons.rc"
class "GtkButton"      			style "buttons"

include "rc_menu.rc"
widget_class "*<GtkMenu>*"		style:highest "menu"
widget_class "*<GtkMenuBar>*"		style:highest "menubar"

include "rc_tabs.rc"
class "GtkNotebook"    			style "tabs"
widget_class "*<GtkNotebook>"    	style "tabs" # this gets the toolbox tabs styled

include "rc_scrollbars.rc"
widget_class "*Scrollbar*"		style "scrollbars"   # this hits the window scrollbar and not the range scrolls

include "rc_checkbuttons.rc"
class "GtkCheckButton" 			style "checkbuttons"

include "rc_radiobuttons.rc"            
class "GtkRadioButton" 			style "radiobuttons"
