# UbuntuStudio Colorscheme
#
# Authors:
# Conn O'Griofa  <connogriofa@gmail.com>
# Cory Kontros   <coryisatm@nc.rr.com>
# Andrea Cimitan <andrea.cimitan@gmail.com>
# Huw Wilkins    <hushimi@gmail.com>
#
# Feel free to modify and share!

gtk_color_scheme = "fg_color:#CCCCCC\nbg_color:#525252\nbase_color:#FFF\ntext_color:#000\nselected_bg_color:#009BF9\nselected_fg_color:#FFF\ntooltip_bg_color:#323232\ntooltip_fg_color:#b2b2b2"

gtk-icon-sizes = "panel-menu=22,22"

style "murrine-default"
{
	########
	# Style Properties
	########
	GtkButton      ::default-border       = { 0, 0, 0, 0 }
	GtkRange       ::trough-border        = 0
	GtkPaned       ::handle-size          = 6
	GtkRange       ::slider-width         = 15
	GtkRange       ::stepper-size         = 15

	GtkScrollbar   ::min-slider-length    = 30
	GtkCheckButton ::indicator-size       = 14
	GtkMenuBar     ::internal-padding     = 0
	GtkTreeView    ::expander-size        = 14
	GtkExpander    ::expander-size        = 16
	GtkScale       ::slider-length        = 24

	GtkToolbar     ::internal-padding     = 0
	GtkTreeView    ::vertical-separator   = 0
	GtkMenu        ::horizontal-padding   = 0
	GtkMenu        ::vertical-padding     = 0
	GtkScale       ::trough-side-details  = 0 # Restores sliders
	#GtkButton      ::child-displacement-x = 1
	#GtkButton      ::child-displacement-y = 1

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

	xthickness = 1
	ythickness = 1

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

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


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

	text[NORMAL]      = @text_color             # Text in window
	text[PRELIGHT]    = @base_color             # Text on Mouseover
	text[ACTIVE]      = @selected_fg_color	    # Active text in inactive window
	text[SELECTED]    = @selected_fg_color      # Active text in active window
	text[INSENSITIVE] = darker (@bg_color)      # Insensitive text

	engine "murrine" 
	{
		scrollbar_color     = "#009bf9" # Does not seem to support @color_definitions, can we fix this?
		contrast            = 1.15
		glazestyle          = 3         # 0 = flat hilight, 1 = curved hilight, 2 = concave style, 3 = top curved hilight, 4 = beryl hilight
		menubarstyle        = 3         # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
		menubaritemstyle    = 0         # 0 = menuitem look, 1 = button look
		menuitemstyle       = 1         # 0 = flat, 1 = glassy, 2 = striped
		menustyle           = 1
		listviewheaderstyle = 1         # 0 = flat, 1 = glassy, 2 = raised
		listviewstyle       = 1         # 0 = nothing, 1 = dotted
		scrollbarstyle      = 2         # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
		hilight_ratio       = 0.90       # set the amount of buttons or widgets hilight
		roundness           = 2         # 0 = squared, 1 = old default, more will increase roundness
		animation           = TRUE      # FALSE = disabled, TRUE = enabled
		gradients           = TRUE
	}
}

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

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

style "murrine-darker"
{
	fg[NORMAL] = shade (0.1, @fg_color)
	fg[ACTIVE] = shade (0.1, @fg_color) 
}

style "murrine-button" = "murrine-wider"
{
	bg[NORMAL] = shade (0.96, @bg_color)
	bg[ACTIVE] = shade (0.73, @bg_color)
}

style "murrine-notebook"
{
	bg[ACTIVE] = shade (0.65, @bg_color)
	bg[NORMAL] = shade (0.88, @bg_color)
	engine "murrine" 
	{
		roundness = 4
	}
}

style "murrine-notebook-tabs" = "murrine-notebook"
{
	fg[ACTIVE] = shade (0.75, @fg_color)
}

style "murrine-tasklist" = "murrine-wide"
{
}

style "murrine-menu" = "murrine-wider"
{
	bg[NORMAL] = shade (0.99, @bg_color)
}

style "murrine-menubar" = "murrine-default"
{
	bg[NORMAL]= shade (0.85, @bg_color)
}

style "murrine-menu-item" = "murrine-wider"
{
	fg[PRELIGHT] = @selected_fg_color
	bg[PRELIGHT] = @selected_bg_color
	engine "murrine" 
	{
		menubaritemstyle = 1
		roundness = 3
	}
}

style "murrine-separator-menu-item"
{
        ythickness = 1
}

style "murrine-treeview" = "murrine-default"
{
	fg[NORMAL]   = shade (0.5, @bg_color)
	fg[PRELIGHT] = shade (0.5, @bg_color)
	bg[NORMAL] = shade (1.5, @bg_color)
}

style "murrine-treeview-header" = "murrine-default"
{
}

style "murrine-frame-title" # Frame stuff
{
	#fg[NORMAL] = shade (1.15, @fg_color)
}

style "murrine-tooltips" = "murrine-wider"
{
	bg[NORMAL] = @tooltip_bg_color
	fg[NORMAL] = @tooltip_fg_color
}

style "murrine-progressbar"
{
	bg[NORMAL] = shade (0.9, @bg_color)
}

style "murrine-statusbar"
{
}

style "murrine-comboboxentry"
{
}

style "murrine-spinbutton"
{
}

style "murrine-scale"
{
	bg[NORMAL] = shade (0.9, @bg_color)
	GtkScale       ::slider-length        = 22
	GtkRange       ::slider-width         = 13
}

style "murrine-hscale"
{
}

style "murrine-vscale"
{
}

style "murrine-scrollbar"
{
	bg[NORMAL]  = shade (0.40, @bg_color)
}

style "murrine-hscrollbar"
{
}

style "murrine-vscrollbar"
{
}

style "murrine-nautilus-location"
{
	bg[NORMAL] = @selected_bg_color
	fg[NORMAL] = @bg_color          # Text on Mouseover
}

style "metacity-frame"
{
	fg[SELECTED]    = @base_color              # Focused title text color
	fg[NORMAL]	= "#000000"
}

style "murrine-radiocheck" = "murrine-default"
{
	text[NORMAL] = @base_color # Text on Mouseover
}

style "murrine-invisible" = "murrine-invisible"
{
	fg[PRELIGHT] = @fg_color # Text when mouseover
}

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

# theme radio buttons and checkmarks
class "GtkRadio*"                        	style "murrine-radiocheck"
class "GtkCheck*"                           	style "murrine-radiocheck"

# keep proper colour for Metacity
class "MetaFrames" 				style "metacity-frame"
class "GtkWindow"    			    	style "metacity-frame"

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

# Increase the x/ythickness in some widgets
class "GtkToolbar"   				style "murrine-default" 
class "GtkRange"     				style "murrine-wide"
class "GtkFrame"     				style "murrine-wide"
class "GtkSeparator" 				style "murrine-wide"
class "GtkEntry"     				style "murrine-wider"

class "GtkSpinButton"  				style "murrine-spinbutton"
class "GtkScale"       				style "murrine-scale"
class "GtkVScale"      				style "murrine-vscale"
class "GtkHScale"      				style "murrine-hscale"
class "GtkScrollbar"   				style "murrine-scrollbar"
class "GtkVScrollbar"  				style "murrine-vscrollbar"
class "GtkHScrollbar"  				style "murrine-hscrollbar"

class "GtkInvisible"     			style "murrine-invisible" # Fix for Firefox white text hover effect

# 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.

# 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 "murrine-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "murrine-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>"       style "murrine-notebook"

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

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

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

widget_class "*.<GtkFrame>.<GtkLabel>" 		style "murrine-frame-title"
widget_class "*.<GtkTreeView>*"        		style "murrine-treeview"
widget_class "*.<GtkTreeView>*<GtkLabel>*"	style "murrine-default" # To ensure listview header text colours are correct

widget_class "*<GtkProgressBar>"       		style "murrine-progressbar"

# Treeview header
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"

# Workarounds for Evolution
widget_class "*.ETable.ECanvas"    		style "murrine-treeview-header"
widget_class "*.ETree.ECanvas"    		style "murrine-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 "murrine-tooltips"

###################################################
# 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 "*auti*IconView*"			style : highest "murrine-darker"            # Nautilus workaround to display black text for rename in Icon View

# 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.
style "murrine-combobox-text-color-workaround"
{
	text[NORMAL]      = @fg_color
	text[PRELIGHT]    = @fg_color
	text[SELECTED]    = @selected_fg_color
	text[ACTIVE]      = @fg_color
	text[INSENSITIVE] = darker (@bg_color)
}
widget_class "*.<GtkComboBox>.<GtkCellView>"	style "murrine-combobox-text-color-workaround"

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

widget "*.gtk-combobox-popup-menu.*"   		style "murrine-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 set.
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)
}

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"

style "murrine-evo-new-button-workaround"
{

	engine "murrine"
	{
		#toolbarstyle = 0
	}
}
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"

style "panel"
{
  bg_pixmap[NORMAL] = "panel/panel.png"
}

widget "*PanelWidget*" 				style "panel"
widget "*PanelApplet*" 				style "panel"
widget "*fast-user-switch*"			style "panel"
class "PanelApp*" 				style "panel"
class "PanelToplevel*" 				style "panel"
widget_class "*Mail*" 				style "panel"
widget_class "*notif*" 				style "panel"
widget_class "*Notif*" 				style "panel"
