#
# Mac Light #D8D8D8 (based on Murrine Git)
#

gtk_color_scheme = "fg_color:#fea63c\nbg_color:#222222"
gtk_color_scheme = "text_color:#5dd997\nbase_color:#2d2d2d"
gtk_color_scheme = "selected_fg_color:#000000\nselected_bg_color:#a4232c"
gtk_color_scheme = "tooltip_fg_color:#f0f0f0\ntooltip_bg_color:#101010"

gtk-button-images	= 1 # Enables or disables icons on buttons (OS X-like).
gtk-icon-sizes = "panel-menu=16,16:panel=24,24:gtk-button=16,16:gtk-large-toolbar=24,24"

# Please keep this gtkrc in sync with the other ones from Murrine based themes.
include "scrollbar.rc" # This includes the file that styles the scrollbars.

style "default" {
	xthickness = 1
	ythickness = 1

# http://live.gnome.org/GnomeArt/Tutorials/GtkThemes/StyleProperties

    GtkWidget::new-tooltip-style	= 1
	
    #######################
	# Style Properties
	#######################
	GtkButton::default_border		= {0, 0, 0, 0}
  	GtkButton::default_outside_border	= {0, 0, 0, 0}
  	GtkButton::inner-border		= {0, 0, 0, 0}
  	#GtkButton::button-relief 		= GTK_RELIEF_NONE
  	GtkButton::child-displacement-x	= 1
  	GtkButton::child-displacement-y	= 1
  	GtkButton::displace-focus		= 0
  	#GtkButton::shadow_type			= GTK_SHADOW_NONE
  	GtkButton::image-spacing		= 2
  	#GtkButton::focus-padding		= 0

	# button box
  	#GtkButtonBox::child-internal-pad-x		= 0
  	
  	# check button
	GtkCheckButton::indicator-size = 16 # funziona con Murrina Git
	#GtkCheckButton::indicator-spacing = 1
	
	# radio button
	GtkRadioButton::indicator-size = 16 # funziona con Murrina Git
	
	# color button
  	#GtkColorButton::default_border			= {0, 0, 0, 0}
  	#GtkColorButton::child-displacement-y		= 1

  	# check menuitem
  	GtkCheckMenuitem::indicator-size		= 12

  	# combo box
  	#GtkComboBox::appears-as-list 			= 1
  	#GtkComboBox::arrow-size			= 10
  	#GtkComboBox::shadow_type			= GTK_SHADOW_OUT
	
  	# combo box entry
  	#GtkComboBoxEntry::appears-as-list 		= 1

  	# entry
  	# 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::inner-border				= {3, 3, 3, 3}
  	
	GtkPaned::handle-size = 5
	
	# Expander
	GtkExpander::expander-size	= 14
	GtkExpander::expander-spacing	= 2


	# Range
	  GtkRange::activate-slider	 = 0
	  GtkRange::arrow-displacement-x	 = 0
	  GtkRange::arrow-displacement-y	 = 0

	  GtkRange::slider-width		 = 15 #15 larghezza cursore scrollbar
	  GtkRange::stepper-size		 = 15 #15
	  GtkRange::stepper-spacing	 = 0 #If stepper-spacing is non-zero, then trough-under-steppers is automatically disabled.
	  GtkRange::trough-border	 = 0 # 0 # distanza laterale del cursore dal bordo della scrollbar
	  GtkRange::trough-side-details	 = 0 # 0 sfondo sfumato della scroolbar 1 = no sfondo sfumato
	  GtkRange::trough-under-steppers = 0 # 0 no bordo intorno alle frecce delle scrollbar altrimenti 1

	# Scale
	  GtkScale::slider-length	 = 13
	  GtkScale::slider-width	 = 13
	  GtkScale::value-spacing	 = 2
	  GtkScale::trough-side-details= 1 # 0 false 1=true
	  GtkScale::trough-border	 = 2 # distanza stepper dal bordo di evidenziazione sotto quando selezionato
	  GtkScale::stepper-spacing	 = 2

	# Scrollbar
	  GtkScrollbar::has-backward-stepper	 = 0
	  GtkScrollbar::has-forward-stepper	 = 0
	  GtkScrollbar::has-secondary-backward-stepper = 0
	  GtkScrollbar::has-secondary-forward-stepper	 = 0
	  GtkScrollbar:: fixed-slider-length	= 1
	  GtkScrollbar:: min-slider-length	= 36
	
	GtkScrolledWindow::scrollbar-spacing = 0 # distanza dalla finestra controllata dalla scrollbar
	GtkScrolledWindow::scrollbars-within-bevel = 0 # 0=false 1=true
	

	# notebook
  	GtkNotebook::arrow-spacing			= 0
  	GtkNotebook::tab-curvature			= 2.0
  	GtkNotebook::tab-overlap			= 1
  	#GtkNotebook::has-secondary-backward-stepper 	= 1
  	#GtkNotebook::has-secondary-forward-stepper  	= 1
  	#GtkNotebook::has-backward-stepper		= 1
  	#GtkNotebook::has-forward-stepper		= 1

	# treeview
  	GtkTreeView::expander_size			= 12
  	GtkTreeView::vertical-separator		= 1
  	GtkTreeView::horizontal-separator		= 4
  	#GtkTreeView::allow-rules			= 1
  	GtkTreeView::odd-row-color			= mix (0.96, @base_color, @fg_color)
  	GtkTreeView::even-row-color			= "#2d2d2d"
  	#GtkTreeView::indent-expanders			= 1
  	#GtkTreeView::row-ending-details		= 1

	GtkMenu::horizontal-padding = 0
	GtkMenu::vertical-padding = 0

	# arrow scaling	
	#GtkRange::arrow-scaling = 0.7
	#GtkMenuItem::arrow-scaling = 0.7
	#GtkArrow::arrow-scaling = 0.7
	
    GtkToolbar::shadow-type       = GTK_SHADOW_NONE  # Makes toolbars flat and unified.
	GtkToolbar::internal-padding = 0
	GtkMenuBar::shadow-type       = GTK_SHADOW_NONE  # Makes toolbars flat and unified.
	GtkMenuBar::internal-padding = 0
	GtkStatusbar::shadow-type = GTK_SHADOW_NONE # elimina bordo attorno alla status bar

	# A semi-transparent hi-light for files selected in Nautilus
	NautilusIconContainer::highlight_alpha  = 128

	# Glow the tasklist by changing the color, instead of overlaying it with a rectangle
	WnckTasklist::fade-overlay-rect    = 0
	WnckTasklist::fade-loop-time			= 5.0
  	#WnckTasklist::fade-max-loop			= 50
  	WnckTasklist::fade-opacity			= 0.5 # final opacity

	####################
	# Color Definitions
	####################
	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 (1.04, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = shade (0.92, @selected_bg_color)
	base[SELECTED]    = shade (0.93, @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 "murrine" {
	
	# https://wiki.ubuntu.com/Artwork/Documentation/Murrine
		animation		= FALSE
		arrowstyle		= 0
		border_colors		= FALSE 
		border_shades		= { 1.0, 1.0 }
		cellstyle		= 0
		colorize_scrollbar	= FALSE
		comboboxstyle		= 0
		contrast		= 1.0
		#default_button_color	= @selected_bg_color
		#disable_focus		= TRUE
		expanderstyle		= 2
		focusstyle		= 0
		focus_color		= shade (1.0, @selected_bg_color)
		glazestyle		= 0
		glow_shade		= 1.4
		glowstyle		= 0
		gradient_colors		= FALSE
		gradient_shades     = { 1.01, 1.0, 1.0, 0.99 }
		handlestyle		= 2
		highlight_shade		= 1.00
		lightborder_shade	= 1.24
		lightborderstyle	= 0
		listviewheaderstyle	= 0
		listviewstyle		= 1
		menubaritemstyle	= 0
		menubarstyle		= 0
		menuitemstyle		= 0
		menustyle		    = 0
		prelight_shade		= 0.95
		progressbarstyle	= 1
		reliefstyle		= 3
		rgba			= FALSE
		roundness		= 2
		scrollbarstyle		= 2
		separatorstyle		= 1
		shadow_shades		= { 0.8, 2.2 }
		sliderstyle		= 0
		spinbuttonstyle		= 0
		stepperstyle		= 1
		textstyle		= 0
		text_shade		= 1.0
		toolbarstyle		= 0
		trough_shades		= { 0.9, 1.1}
		trough_border_shades	= { 1.0, 1.0 }
	}
}

style "wide" {
	xthickness = 2
	ythickness = 2
}

style "wider" {
	xthickness = 3
	ythickness = 3
}

style "spinbutton" {
	engine "murrine"
	{
		roundness  = 2
	}
}

style "scale" {	

	xthickness = 2
	ythickness = 2
	
bg[NORMAL]        = shade (1.12, @bg_color)
bg[SELECTED]        = shade (1.07, @selected_bg_color)

	engine "murrine"
  	{
    		roundness		= 6
		highlight_shade		= 1.05 
		contrast		=  1.0 #1.10 
		glazestyle = 1
		glow_shade          = 1.5   
		glowstyle           = 2   
    		lightborder_shade   = 1.25
    		lightborderstyle    = 2 
		gradient_shades     = {1.08,1.04,1.00,0.96}
		border_shades       	= { 0.8,0.8}
		trough_shades	    = { 0.88 , 0.78 }
		trough_border_shades = { 0.72, 1.24 } #to draw a gradient on the border of trough of GtkScrollbar and GtkProgressBar
	}
}

style "vscale" {}

style "hscale" {}

#Scrollbar definition
style "scrollbar" {}

style "hscrollbar" {}

style "vscrollbar" {}

#Progressbar definition
style "progressbar" 
{
	xthickness = 0
	ythickness = 0
	fg[PRELIGHT]      = @selected_fg_color
	
        engine "murrine" 
	{
		roundness = 2
		lightborder_shade   = 1.25
    		lightborderstyle    = 1
		highlight_shade		= 1.05 
		contrast		=  1.20
		gradient_shades     = {1.2,1.0,1.0,0.6}
		border_shades = { 1.2, 1.0 } # to draw a gradient on the border.
		glow_shade          	= 1.5
		glowstyle		= 0
		glazestyle = 0
		trough_shades	    = { 0.9, 1.1 }
		trough_border_shades = { 1.1, 1.1 } #to draw a gradient on the border of trough of GtkScrollbar and GtkProgressBar
	}
}

style "progressbar_menu_item" = "progressbar" {
	engine "murrine" {
		roundness = 0
	}
}



style "button" 
{
	xthickness = 3
	ythickness = 3
	engine "murrine" 
	{
		contrast		= 1.0
		glazestyle          = 5     # 0 = flat, 1 = curved, 2 = concave, 3 = top curved, 4 = beryl highlight, 5 = new
		glow_shade          = 1.04   # sets glow amount for buttons or widgets
		glowstyle           = 0     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
		gradient_shades     = {1.34,1.18,1.12,0.98}
		highlight_shade     = 1.00  # set highlight amount for buttons or widgets
		lightborder_shade   = 3.00  # sets lightborder amount for buttons or widgets 
		lightborderstyle    = 1
	}
}

# The color is changed by the notebook_bg style, this style
# changes the x/ythickness
style "notebook" 
{
	xthickness = 1
	ythickness = 2
	
		engine "murrine" 
	{
		roundness = 2
		
	}
}

style "notebook_bg"
{
	xthickness = 2
	ythickness = 2

	bg[NORMAL] = shade (1.08, @bg_color)
	bg[ACTIVE] = shade (0.97, @bg_color)
	fg[ACTIVE] = mix (0.9, @fg_color, @bg_color)

}
style "comboboxentry" {}

style "menubar" {}

style "menu" 
{
	xthickness = 0
	ythickness = 0
	bg[NORMAL]        = shade (1.60, @bg_color)
}

style "menu_item" 
{
	xthickness = 2
	ythickness = 3
	
	bg[PRELIGHT]      = @selected_bg_color
	fg[PRELIGHT]      = @selected_fg_color
	
	engine "murrine" 
	{
		roundness = 0
		lightborderstyle   = 1
        lightborder_shade   = 1.0
        border_shades = { 1.4, 1.4} # to draw a gradient on the border
	}
}

style "menubar_item" = "menu_item" {

	
	engine "murrine" {
		contrast = .0 
		roundness = 0
		border_shades = { 1.0, 1.0 }
		gradient_shades	= {1.0,1.0,1.0,1.0}
	}
}

# This style is there to modify the separator menu items. The goals are:
# 1. Get a specific height.
# 2. The line should go to the edges (ie. no border at the left/right)
style "separator_menu_item" 
{
	xthickness = 0
	ythickness = 0

	GtkSeparatorMenuItem::horizontal-padding = 0
	GtkWidget::wide-separators = 1
	GtkWidget::separator-width = 1
	GtkWidget::separator-height = 7
}

style "separator_tool_item" {
	xthickness = 0
	ythickness = 1

	GtkVSeparator::vertical-padding = 0
	GtkWidget::wide-separators = 1
	GtkWidget::separator-width = 7
	GtkWidget::separator-height = 1
}

style "frame_title" 
{
	fg[NORMAL]        = lighter (@fg_color)
}

# This style is based on the default style, so that the colors from the button
# style are overriden again.
style "treeview_header" = "default" 
{
	xthickness = 2
	ythickness = 2

	bg[NORMAL]        = shade (0.92, @bg_color)
	bg[PRELIGHT]      = shade (1.02, @bg_color)

}

style "treeview" 
{
	fg[NORMAL]= @fg_color
	
	engine "murrine" {roundness = 0}
}

style "statusbar" 
{
  #xthickness   = 2
  #ythickness   = 2
}

style "tooltips" {
	xthickness = 4
	ythickness = 4

	bg[NORMAL] = @tooltip_bg_color
	fg[NORMAL] = @tooltip_fg_color
	bg[SELECTED] = darker (@tooltip_bg_color)

	engine "murrine" {
		rgba = TRUE
	}
}

style "nautilus_location" {
	bg[NORMAL]        = @selected_bg_color
}

style "calendar" {
	engine "murrine" {
		roundness = 0
	}
}

style "radiocheck" {
	bg[SELECTED] = @base_color

	text[NORMAL] = @selected_bg_color
	text[PRELIGHT] = @selected_bg_color
      
engine "murrine" 
		{
		roundness = 1
		contrast = 1.0
		highlight_shade     = 1.00
		lightborderstyle = 0
		lightborder_shade   = 1.0  # sets lightborder amount for buttons or widgets 
		}
}

style "optioncheck" {
  bg[SELECTED] = @base_color

	text[NORMAL] = @selected_bg_color
	text[PRELIGHT] = @selected_bg_color
engine "murrine" 
		{
		contrast = 1.0
		highlight_shade     = 1.00
		lightborderstyle = 0
		lightborder_shade   = 1.0  # sets lightborder amount for buttons or widgets 
		}
}

style "infobar" {
	engine "murrine" {
	}
}
# Wrokaroudn style for places where the text color is used instead of the fg color.
style "text_is_fg_color_workaround" {
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = @fg_color
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @fg_color
	text[INSENSITIVE] = darker (@bg_color)
}

# Workaround style for menus where the text color is used instead of the fg color.
style "menuitem_text_is_fg_color_workaround" {
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = @selected_fg_color
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @fg_color
	text[INSENSITIVE] = darker (@bg_color)
}

# Workaround style for places where the fg color is used instead of the text color.
style "fg_is_text_color_workaround" {
	fg[NORMAL]        = @text_color
	fg[PRELIGHT]      = @text_color
	fg[SELECTED]      = @selected_fg_color
	fg[ACTIVE]        = @selected_fg_color
	fg[INSENSITIVE]   = darker (@bg_color)
}

# Style to set the toolbar to use a flat style. This is because the "New" button in
# Evolution is not drawn transparent. So if there is a gradient in the background it will
# look really wrong.
# See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
style "evo_new_button_workaround" {
}

###############################################################################
# The following part of the gtkrc applies the different styles to the widgets.
###############################################################################

# The default style is applied to every widget
class "GtkWidget" style "default"

class "GtkSeparator" style "wide"
class "GtkFrame" style "wide"
class "GtkCalendar" style "wide"
class "GtkEntry" style "wider"

class "GtkSpinButton" style "spinbutton"
class "GtkScale" style "scale"
class "GtkVScale" style "vscale"
class "GtkHScale" style "hscale"
class "GtkScrollbar" style "scrollbar"
class "GtkHScrollbar" style "hscrollbar"
class "GtkVScrollbar" style "vscrollbar"
class "GtkCalendar" style "calendar"
class "GtkInfoBar" style "infobar"


# General matching follows. The order is choosen so that the right styles override
# each other. EG. progressbar needs to be more important than the menu match.
widget_class "*<GtkNotebook>" style "notebook_bg"
# This is not perfect, it could be done better.
# (That is modify *every* widget in the notebook, and change those back that
# we really don't want changed)
widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
widget_class "*<GtkNotebook>*<GtkLabel>"  style "notebook_bg"

widget_class "*<GtkButton>" style "button"
widget_class "*<GtkNotebook>" style "notebook"
widget_class "*<GtkStatusbar>*" style "statusbar"

widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
widget_class "*<GtkCombo>*" style "comboboxentry"

widget_class "*<GtkMenuBar>*" style "menubar"
widget_class "*<GtkMenu>*" style "menu"
widget_class "*<GtkMenuItem>*" style "menu_item"
widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
widget_class "*<GtkSeparatorToolItem>*" style "separator_tool_item"
widget_class "*<GtkMenuBar>*<GtkMenuItem>" style "menubar_item"

widget_class "*<GtkRadioButton>*" style "radiocheck"
widget_class "*<GtkCheckButton>*" style "radiocheck"

widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
widget_class "*.<GtkTreeView>*" style "treeview"

widget_class "*<GtkProgress>" style "progressbar"
widget_class "*.<GtkMenuItem>.*.<GtkProgressBar>" style "progressbar_menu_item"

# Treeview headers (and similar stock GTK+ widgets)
widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"

# The window of the tooltip is called "gtk-tooltip"
##################################################################
# FIXME:
# This will not work if one embeds eg. a button into the tooltip.
# As far as I can tell right now we will need to rework the theme
# quite a bit to get this working correctly.
# (It will involve setting different priorities, etc.)
##################################################################
widget "gtk-tooltip*" style "tooltips"

##########################################################################
# Following are special cases and workarounds for issues in applications.
##########################################################################

# Workaround for the evolution ETable (bug #527532)
widget_class "*.ETable.ECanvas" style "treeview_header"
# Workaround for the evolution ETree
widget_class "*.ETree.ECanvas" style "treeview_header"

# Special case the nautilus-extra-view-widget
# ToDo: A more generic approach for all applications that have a widget like this.
widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
# This is the part of the workaround that fixes the menus
widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"

# Work around the usage of GtkLabel inside GtkListItems to display text.
# This breaks because the label is shown on a background that is based on the base color.
widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
# GtkCList also uses the fg color to draw text on top of the base colors.
widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
# Nautilus when renaming files, and maybe other places.
widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"

# See the documentation of the style.
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
