#Bimetallico 1.2

# Set GtkSettings color scheme property.
# This can be overriden (via an xsetting) with eg. the gnome-appearance-properties.
gtk_color_scheme = "fg_color:#000000\nbg_color:#EBEBEB\nbase_color:#fff\ntext_color:#000\nselected_bg_color:#f1b1cadd1ac9\nselected_fg_color:#fff\ntooltip_bg_color:#f5f5f5f5b5b5\ntooltip_fg_color:#000"

#text_color:#1A1A1A
# gtk-icon-sizes = "panel=20,22 : gtk-menu=20,20 : gtk-button=20,20 : gtk-small-toolbar=16,16 : gtk-large-toolbar=20,20 : gtk-dialog=24,24 : gtk-dnd=24,24 : gtk-button=16,16"

include "menubar.rc"

style "murrine-default"
{
	########
	# Style Properties
	########
	GtkButton      ::child-displacement-x = 1
	GtkButton      ::child-displacement-y = 1
	GtkButton      ::default-border       = { 0, 0, 0, 0 }

	GtkCheckButton ::indicator-size       = 15

	GtkPaned       ::handle-size          = 1

	GtkRange       ::trough-border        = 0
	GtkRange       ::slider-width         = 15
	GtkRange       ::stepper-size         = 15

	GtkScale       ::slider-length        = 24
	GtkScale       ::trough-side-details  = 0

	GtkScrollbar   ::min-slider-length    = 30

	GtkMenuBar     ::internal-padding     = 0

	GtkExpander    ::expander-size        = 16

	GtkToolbar     ::internal-padding     = 1


	GtkTreeView    ::expander-size        = 14
	GtkTreeView    ::vertical-separator   = 1

	GtkMenu        ::horizontal-padding   = 0
	GtkMenu        ::vertical-padding     = 0
	
	#shadow types
	#GtkMenuBar::shadow_type = GTK_SHADOW_NONE
	#GtkToolbar::shadow_type = GTK_SHADOW_NONE
	#GtkStatusbar::shadow_type = GTK_SHADOW_NONE
	#GtkSpinButton::shadow_type = GTK_SHADOW_NONE
	#GtkScrolledWindow::shadow_type = GTK_SHADOW_NONE
	#GtkFrame::shadow_type = GTK_SHADOW_NONE --change nothing: disabled

        


	# Glow the tasklist by changing the color, instead of overlaying it with a rectangle
	WnckTasklist   ::fade-overlay-rect    = 1

	xthickness = 1
	ythickness = 1


	fg[NORMAL]        = @fg_color                # Metacity and mouseover, Most text
	fg[PRELIGHT]      = shade (1.21, @fg_color) # Text when mouseover
	fg[SELECTED]      = @selected_fg_color      # Metacity X when window selected
	fg[ACTIVE]        = @fg_color                # Text when mouseclicking button, Tabs, Active window list
	fg[INSENSITIVE]   = darker (@bg_color)       # Insensitive Text

	bg[NORMAL]        = @bg_color                # Normal Background, inactive Metacity bar, buttons
	bg[PRELIGHT]      = shade (1.14, @bg_color)  # Mouseover buttons
	bg[SELECTED]      = @selected_bg_color       # Metacity Bar
	bg[INSENSITIVE]   = shade (1.20, @bg_color)  # Insensitive buttons
	bg[ACTIVE]        = shade (0.74, @bg_color)  # Mouseclicking, Tabs, active window list

	base[NORMAL]      = @base_color              # Background, most
	base[PRELIGHT]    = shade (0.95, @selected_bg_color)  # Mouseover menu
	base[ACTIVE]      = shade (0.80, @selected_bg_color)  # Menu active item in inactive window
	base[SELECTED]    = @selected_bg_color       # Menu active item in active window
	base[INSENSITIVE] = lighter (@bg_color)      # Background, insensitive

	text[NORMAL]      = @text_color             # Text in window
	text[PRELIGHT]    = @text_color               # Text on Mouseover
	text[ACTIVE]      = @text_color               # Active text in inactive window
	text[SELECTED]    = @selected_fg_color        # Active text in active window
	text[INSENSITIVE] = lighter (@fg_color)        # Unknown

	engine "murrine" 
	{
		animation           = TRUE  # FALSE = disabled, TRUE = enabled
		colorize_scrollbar  = FALSE # FALSE = disabled, TRUE = enabled
		contrast            = 0.6  # 0.8 for less contrast, more than 1.0 for more contrast on borders
		glazestyle          = 0     # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
		gradient_shades     = {1.1,1.0,1.0,0.92} # default: {1.1,1.0,1.0,1.1}
		gradients           = TRUE  # FALSE = disabled, TRUE = enabled
		highlight_ratio     = 1.05  # set highlight amount for buttons or widgets
		lightborder_ratio   = 1.1   # sets lightborder amount for buttons or widgets
		lightborderstyle    = 0     # 0 = lightborder on top side, 1 = lightborder on all sides
		listviewheaderstyle = 1     # 0 = flat, 1 = glassy, 2 = raised
		listviewstyle       = 0    # 0 = nothing, 1 = dotted
		menubaritemstyle    = 0     # 0 = menuitem look, 1 = button look
		menubarstyle        = 2     # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
		menuitemstyle       = 1     # 0 = flat, 1 = glassy, 2 = striped
		menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
		reliefstyle	    = 0     # 0 = flat, 1 = inset, 2 = shadow
		rgba		    = TRUE # FALSE = disabled, TRUE = enabled
		roundness           = 3    # 0 = squared, 1 = old default, more will increase roundness
		scrollbarstyle      = 1    # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
		sliderstyle         = 1     # 0 = nothing added, 1 = handles
		stepperstyle        = 1     # 0 = standard, 1 = integrated stepper handles, 2 = unknown
		style		    = MURRINE # engine style options: CANDIDO, CLEARLOOKS, MIST, MURRINE, NODOKA
		toolbarstyle	    = 2     # 0 = flat, 1 = glassy, 2 = gradient
	}
}

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

style "murrine-entry"
{
	xthickness = 3
	ythickness = 3
	engine "murrine" 
	{
		roundness 	          = 3
		
	}
}

style "murrine-scrollbar"
{
	xthickness = 2
	ythickness = 2
	bg[NORMAL]        = shade (0.85, @bg_color) 
	engine "murrine" 
	{
		roundness 	          = 2
		
	}
}

style "murrine-button"
{
	xthickness   = 3
	ythickness   = 3

	bg[NORMAL]   = shade (1.14, @bg_color) 
	bg[PRELIGHT] = shade (1.20, @selected_bg_color)
	bg[ACTIVE]   = shade (0.90, @selected_bg_color)
}

style "murrine-toolbar"
{
       bg[NORMAL] = @bg_color	
#bg[NORMAL] =  mix(0.96, shade (1.08,@bg_color), shade (1.12,@selected_bg_color)) #slightly tinted style shade

}

style "murrine-notebook"
{
	xthickness = 2
	ythickness = 2

	bg[NORMAL] = shade (1.15, @bg_color)
	#bg[NORMAL] =  mix(0.92, shade (1.16,@bg_color), shade (1.14,@selected_bg_color)) #slightly tinted style shade
	engine "murrine" 
	{
		roundness 	          = 4
	}
}



style "murrine-tasklist"
{
	xthickness = 5
	ythickness = 3
}

#style of panel

style "murrine-panel"
{
  xthickness	= 3
  ythickness	= 2
  GtkWidget::separator-height = 5
  

	fg[NORMAL]        = @selected_fg_color
	fg[PRELIGHT]      = @selected_fg_color
	fg[SELECTED]      = @selected_fg_color
	fg[ACTIVE]        = @selected_fg_color
	fg[INSENSITIVE]   = darker (@selected_bg_color)
	
	text[NORMAL]	  = @selected_fg_color
	text[PRELIGHT]	  = @selected_fg_color
	text[SELECTED]	  = @selected_fg_color
	text[ACTIVE]	  = @selected_fg_color
	text[INSENSITIVE] = darker (@selected_bg_color)

	bg[NORMAL]        = shade (0.54, @bg_color)
	#bg[ACTIVE]        = shade (0.36, @bg_color)
	#bg[SELECTED]        = shade (0.36, @bg_color)
	#bg[PRELIGHT]        = shade (0.36, @bg_color)
	#bg[INSENSITIVE]        = shade (0.36, @bg_color)

}

style "murrine-panel-button"
{
  xthickness	= 3
  ythickness	= 2

  
  #ACTIVE=focused windows
  #NORMAL=unfocused windows
  #PRELIGHT=mouseover buttons
  #SELECTED=**unused**
  
	fg[NORMAL]        = @selected_fg_color
	fg[PRELIGHT]      = lighter (@selected_bg_color) #colorized title
	fg[SELECTED]      = @selected_fg_color
	fg[ACTIVE]        = @selected_fg_color
	fg[INSENSITIVE]   = darker (@selected_bg_color)

	bg[NORMAL]        = shade (0.20, @bg_color)  
	bg[PRELIGHT]      = shade (0.48, @bg_color)
	bg[SELECTED]        = shade (0.20, @bg_color)
	bg[ACTIVE]        = shade (0.42, @bg_color)
	bg[INSENSITIVE]        = shade (0.20, @bg_color) 	
	       
	engine "murrine" {
		# Explicitly set the roundness
		roundness = 4
	}
}

#styles of menu

style "murrine-menu"
{
	xthickness = 0
	ythickness = 0

	bg[NORMAL] = shade (0.37, @bg_color)
	
	fg[NORMAL] = @fg_color
		
	
	# roundness of the menu items (inside menus)
	engine "murrine" {
		roundness = 0
	}
}

style "murrine-menu-item"
{
	xthickness = 2
	ythickness = 3

	fg[PRELIGHT] = @selected_fg_color
	fg[NORMAL] = @selected_fg_color # text of menu - now white: it draws unselected menu bar items of openoffice and firefox too! 
	
	#fg[SELECTED]     = darker (@selected_fg_color)

	text[NORMAL]       = @fg_color #the problem with combo lists is resolved with a workaround
	
	#text[PRELIGHT]     = @selected_fg_color
	#text[SELECTED]     = @selected_fg_color
	#text[ACTIVE]       = @fg_color
	#text[INSENSITIVE]  = lighter (@bg_color)
}

style "murrine-separator-menu-item"
{
	GtkSeparatorMenuItem::horizontal-padding = 0
	# We are setting the desired height by using wide-separators
	# There is no other way to get the odd height ...
	GtkWidget::wide-separators = 1
	GtkWidget::separator-width = 0
	GtkWidget::separator-height = 5
	xthickness = 0
	ythickness = 0
}

style "murrine-menu-bar"
{
	xthickness = 2
	ythickness = 3

	fg[NORMAL] = @selected_fg_color
	fg[PRELIGHT] = @selected_fg_color #this is the text color of a selected item in the menu bar
	
	#unused	
	fg[ACTIVE] = @fg_color 
	fg[SELECTED] = @fg_color
	fg[INSENSITIVE] = @fg_color

	bg[SELECTED] = shade (0.40, @bg_color) #selected item of the menu bar
	bg[NORMAL] = shade (0.54, @bg_color) #selected item of the menu bar
	
	engine "murrine" 
	{
		roundness 	          = 0
	}
	


}


# Based on the default style so that the colors from the button
# style are overriden again.
style "murrine-treeview-header" = "murrine-default"
{
	xthickness = 2
	ythickness = 1
	
	bg[NORMAL] = shade (0.70, @bg_color)
	bg[ACTIVE] = shade (0.70, @bg_color)
	base[NORMAL] = @bg_color
}

style "murrine-frame-title"
{
	fg[NORMAL] = lighter (@fg_color)
}

style "murrine-tooltips"
{
	xthickness = 6
	ythickness = 6

	bg[NORMAL] = shade (0.80,@selected_bg_color)
	fg[NORMAL] = @selected_fg_color
	text[NORMAL]   =  @selected_fg_color
}

style "murrine-progressbar"
{
	xthickness = 1
	ythickness = 1

	fg[PRELIGHT] = @selected_fg_color
	bg[NORMAL] = shade (0.95, @bg_color)

	engine "murrine" {
		# Explicitly set the roundness, for progress
		# bars inside menuitems
		roundness = 4
	}
}

style "murrine-nautilus-location" {
	bg[NORMAL] = mix(0.60, shade (1.50,@bg_color), @selected_bg_color)
}

#WORKAROUND STYLES

# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
# Note that the work around assumes that the combobox is _not_ in
# appears-as-list mode.
# Similar hack also in the menuitem style.
# This style does not affect GtkComboBoxEntry, it does have an effect
# on comboboxes in appears-as-list mode though.
# NOT USED IN THIS THEME
style "murrine-combobox-text-color-workaround"
{	
	fg[NORMAL] = @selected_fg_color
	bg[NORMAL] = shade (0.30, @bg_color)

	text[NORMAL]      = @selected_fg_color
	text[PRELIGHT]    = @selected_fg_color
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @selected_fg_color
	text[INSENSITIVE] = @bg_color
}


style "murrine-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)
}

style "murrine-fg-is-text-color-workaround"
{
	fg[NORMAL]      = @text_color
	fg[PRELIGHT]    = @text_color
	fg[ACTIVE]      = @selected_fg_color
	fg[SELECTED]    = @selected_fg_color
	fg[INSENSITIVE] = darker (@bg_color)
}

#########################################
# Matches
#########################################

# murrine default style is applied to every widget
class "GtkWidget"    style "murrine-default"

# Increase the x/ythickness in some widgets
class "GtkToolbar"   style "murrine-toolbar"
class "GtkRange"     style "murrine-wide"
class "GtkFrame"     style "murrine-wide"
class "GtkSeparator" style "murrine-wide"
class "GtkEntry"     style "murrine-entry"
class "GtkTreeView"  style "murrine-treeview-header"
class "GtkScrollbar" style "murrine-scrollbar"
class "Panel*"       style "murrine-panel"
class "*Panel*Applet*" style "murrine-panel"

#widget definitions of menu

widget_class "*<GtkMenu>*"              style "murrine-menu"
widget_class "*<GtkMenuItem>*"          style "murrine-menu-item"
widget_class "*<GtkMenuBar>*"           style "menubar"
widget_class "*<GtkSeparatorMenuItem>*" style "murrine-separator-menu-item"


###################################################
# Special cases and work arounds
###################################################

# 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 "murrine-nautilus-location"

widget "*.gtk-combobox-popup-menu.*"   style "murrine-combobox-text-color-workaround" # or style "murrine-menuitem-text-is-fg-color-workaround"  

# Work around the evolution "New" button bug by making the toolbar flat.
# http://bugzilla.gnome.org/show_bug.cgi?id=446953
# Maybe remove this workaround in unstable releases.
style "murrine-evo-new-button-workaround"
{
	engine "murrine" {
		toolbarstyle = 0
	}
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"

##################
# Treeview header#
##################
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
widget_class "*.<GtkComboBox>.<GtkCellView>"   style "murrine-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 set.

widget_class "*<GtkListItem>*" style "murrine-fg-is-text-color-workaround"
# The same problem also exists for GtkCList and GtkCTree
# Only match GtkCList and not the parent widgets, because that would also change the headers.
widget_class "*<GtkCList>" style "murrine-fg-is-text-color-workaround"

widget_class "*.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
widget_class "*.<GtkCTree>.<GtkButton>"    style "murrine-treeview-header"
widget_class "*.<GtkList>.<GtkButton>"     style "murrine-treeview-header"
widget_class "*.<GtkCList>.<GtkButton>"    style "murrine-treeview-header"

widget_class "*.<GtkTreeView>*" style "murrine-treeview-header"


# Workarounds for Evolution
widget_class "*.ETable.ECanvas"    style "murrine-treeview-header"
widget_class "*.ETree.ECanvas"    style "murrine-treeview-header"

#Firefox isn't nice to dark themes, so unset the dark stuff.
widget "MozillaGtkWidget*Menu*"	style "murrine-fg-is-text-color-workaround"
widget "MozillaGtkWidget*Frame*" style "murrine-fg-is-text-color-workaround"



########################### 
#General matching following, the order is choosen so that the right styles override each other
###########################
# eg. progressbar needs to be more important then the menu match.

widget_class "*<GtkButton>"      style "murrine-button"
widget_class "*<GtkNotebook>"    style "murrine-notebook"
widget_class "*<GtkProgressBar>" style "murrine-progressbar"

#widget classes of panel
widget_class "Panel*" style "murrine-panel"
#widget_class "*BonoboDockItem" style "murrine-panel" #NOT SET THIS: IT MAKES SOME NO PANEL WIDGETS LIKE BLACK PANEL
widget_class "Panel*.*<GtkMenuBar>*"    style "murrine-panel-button"
widget_class "Panel*.*<GtkButton>*"     style "murrine-panel-button"
#widget_class "*Panel*GtkToggleButton" 	style "murrine-panel-button" #NOT SET THIS: IT MAKES SOME NO PANEL WIDGETS LIKE BLACK PANEL
#Panel classes


#applets on panel
widget_class "*PanelApplet*" style "murrine-panel"
widget_class "*PanelWidget*" style "murrine-panel"
#widget_class "*Panel*Widget*" style "murrine-panel" #NOT SET THIS: IT MAKES SOME NO PANEL WIDGETS LIKE BLACK PANEL
widget "*CPUFreq*" style "murrine-panel"
widget "Panel*MenuBar*" style "murrine-panel" #corrects standard Gnome Menu on panel
widget_class "*Tomboy*Tray*" style "murrine-panel"
widget_class "*Xfce*Panel*" style "murrine-panel"
# Workaround for Fast User Switch applet
widget "*fast-user-switch*" style "murrine-panel" 


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



# 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 "murrine-tooltips"




