# Melancholy Murrine Colorscheme
#
# by Vincent Murasamé
#
# Original authors (Ubuntu Human Colorscheme):
# Richard Stellingwerff <remenic@gmail.com>
# Daniel Borgmann <daniel.borgmann@gmail.com>
# Billy Cantrell <bvcmdk@yahoo.com>
#
# Feel free to modify and share!

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

style "melancholy-default"
{
	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 = 35
	GtkCheckButton ::indicator_size    = 14
	GtkMenuBar     ::internal-padding  = 0
	GtkTreeView    ::expander_size     = 14
	GtkExpander    ::expander_size     = 16
	GtkScale       ::slider-length     = 31
	# GtkToolbar     ::button-relief     = GTK_RELIEF_NORMAL
	# GtkMenuBar     ::shadow-type       = GTK_SHADOW_OUT
	# GtkScrollbar   ::has-secondary-forward-stepper = 1
	# GtkScrollbar   ::has-secondary-backward-stepper = 1

	GtkButton      ::child-displacement-x = 0
	GtkButton      ::child-displacement-y = 0

	xthickness = 1
	ythickness = 1

	GtkTreeView::odd_row_color = "#F5F2ED"
	GtkTreeView::even_row_color = "#FAF9F7"

	fg[NORMAL]        = "#101010"
	fg[PRELIGHT]      = "#000000"
	fg[ACTIVE]        = "#000000"
	fg[SELECTED]      = "#ffffff"
	fg[INSENSITIVE]   = "#b0b0b0"

	bg[NORMAL]        = "#ececec"
	bg[PRELIGHT]      = "#f3f3f3"
	bg[ACTIVE]        = "#dadada"
	bg[SELECTED]      = "#828282"
	bg[INSENSITIVE]   = "#e8e8e8"

	base[NORMAL]      = "#ffffff"
	base[PRELIGHT]    = "#ffffff"
	base[ACTIVE]      = "#dadada"
	base[SELECTED]    = "#dbdbdb"
	base[INSENSITIVE] = "#e8e8e8"

	text[NORMAL]      = "#000000"
	text[PRELIGHT]    = "#000000"
	text[ACTIVE]      = "#000000"
	text[SELECTED]    = "#000000"
	text[INSENSITIVE] = "#b0b0b0"

	engine "murrine" 
	{
		glazestyle = 3 #(change general look, i.e. buttons) - 0 = flat hilight, 1 = curved hilight, 2 = concave style, 3 = top curved hilight, 4 = beryl/emerald style
 	roundness = 0 #(set roundness of buttons and other widgets) * 0,1,2,3,4,5,6,7,8 = From flat till too rounded =).
    		      #concave style (glazestyle = 2) is supported just with roundness = 0,1.
	gradients = TRUE #(enable or disable gradients on all widgets)
	menubarstyle = 2 #(change style of the menubar) * 0 = flat, 1 = glassy (it follows selected glazestyle), 2 = gradient, 3 = striped
	menuitemstyle = 3 #(change look of menuitems) * 0 = flat, 1 = glassy (it follows selected glazestyle), 2 = striped
	menubaritemstyle = 0 #(change look of menubar items) * 0 = menuitem look, 1 = button look
	listviewheaderstyle = 2 #0 = flat, 1 = glassy (it follows selected glazestyle), 2 = raised #(change look of listviewheaders)
	listviewstyle = 1 #(change separators of listviews) * 0 = nothing (completely flat), 1 = dotted separators
	#sliderstyle (enable extra features on sliders) [NEXT RELEASE]
    	#0 = nothing added
    	#1 = handles
	scrollbarstyle = 2 #(enable extra features on scrollbars) * 0 = nothing added, 1 = circles, 2 = handles,  3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
	animation = TRUE #(enable or disable animations on progressbars, radios and checks)
	#colorize_scrollbar "(enable or disable colorization of the scrollbar, using bg[SELECTED]) [NEXT RELEASE]n
	scrollbar_color = "#909090" #(set the color of the scrollbar) [DEPRECATED]
	#HEX_COLOR = set custom color
	#hilight_ratio (set the amount of buttons or widgets hilight)
	#e.g. hilight_ratio = 1.1 for more hilight (useful on dark themes)
	#e.g. hilight_ratio = 0.909090 for a flat looking theme!!!
	#set it to less for a concave theme
	#contrast (set the contrast of the theme)
	#e.g. contrast = 0.8 for less contrast or more than 1.0 for more contrast on borders! 
	}
}

# Evolution (and some deprecated widgets) use bg and fg for its listview instead of 
# base and text like they should, so we override it.
style "evolution-hack" = "melancholy-default"
{	
	bg[ACTIVE]   = "#dadada"
	bg[SELECTED] = "#dbdbdb"
	fg[ACTIVE]   = "#000000"
	fg[SELECTED] = "#000000"
}

# Bright greyish highlights only for selected widgets
style "melancholy-greyish" = "melancholy-default"
{
	bg[SELECTED] = "#858585"
}


style "melancholy-wide" = "melancholy-default"
{
	xthickness = 2
	ythickness = 2
}
style "melancholy-wide-greyish" = "melancholy-wide"
{
	bg[SELECTED] = "#858585"
}

style "melancholy-wider" = "melancholy-default"
{
	xthickness = 3
	ythickness = 3
}
style "melancholy-wider-greyish" = "melancholy-wider"
{
	bg[SELECTED] = "#858585"
}

style "melancholy-button" = "melancholy-wider-greyish"
{
	bg[PRELIGHT] = "#f3f3f3"
	bg[ACTIVE]   = "#d4d4d4"

	engine "murrine" 
	{
	roundness = 8
	}
}

style "melancholy-notebook" = "melancholy-wide-greyish"
{
	bg[NORMAL]      	= "#ebebeb"
	bg[ACTIVE]      	= "#c9c9c9"
	bg[INSENSITIVE] 	= "#ebebeb"
	
	engine "murrine" 
	{
	roundness = 8
	}
}

style "melancholy-tasklist" = "melancholy-default"
{
	xthickness = 5
	ythickness = 3
}

style "melancholy-menu" = "melancholy-default"
{
	xthickness = 2
	ythickness = 1
	bg[NORMAL] = "#f5f5f5"
}

style "melancholy-menubar-item" = "melancholy-button"
{
	fg[PRELIGHT] = "#000000"
}

style "melancholy-menu-item" = "melancholy-default"
{
	xthickness = 2
	ythickness = 3
	bg[SELECTED] = "#dbdbdb"
	fg[PRELIGHT] = "#000000"
	text[PRELIGHT] = "#000000"
}

style "melancholy-tree" = "melancholy-wide"
{
}

style "melancholy-frame-title" = "melancholy-default"
{
	fg[NORMAL] = "#404040"
}

style "melancholy-tooltips" = "melancholy-default"
{
	xthickness = 4
	ythickness = 4
	bg[NORMAL] = { 1.0,1.0,0.75 }
}

style "melancholy-progressbar" = "melancholy-wide-greyish"
{
	xthickness = 2
	ythickness = 2
	fg[PRELIGHT]  = "#ffffff"
}

style "melancholy-combo" = "melancholy-button"
{
}

style "melancholy-check" = "melancholy-button"
{
}

style "melancholy-range" = "melancholy-wide-greyish"
{
}

style "metacity-frame" = "melancholy-default"
{
	bg[SELECTED] = "#909090"
}

style "extra-view-widgets" = "melancholy-default"
{
	bg[NORMAL] = "#c7c7c7"
}

style "panel"
{
	xthickness = 2
        ythickness = 1
	bg_pixmap[NORMAL] = "panel-bg.png"
}

style "menubar"
{
	xthickness = 2
        ythickness = 1
	bg_pixmap[NORMAL] = "menubar.png"
}

# widget styles
class "GtkWidget"      style "melancholy-default"
class "GtkButton"      style "melancholy-button"
class "GtkCombo"       style "melancholy-button"
class "GtkRange"       style "melancholy-range"
class "GtkFrame"       style "melancholy-wide"
class "GtkMenu"        style "melancholy-menu"
class "GtkEntry"       style "melancholy-wider-greyish"
class "GtkMenuItem"    style "melancholy-menu-item"
class "GtkNotebook"    style "melancholy-notebook"
class "GtkProgressBar" style "melancholy-progressbar"
class "MetaFrames"     style "metacity-frame"
class "GtkWindow"      style "metacity-frame"

class "GtkCheckButton" style "melancholy-check"
class "GtkRadioButton" style "melancholy-check"

# additional classes for customized menubar and panel
class "Panel*" style "panel"
class "*MenuBar*" style "menubar" # To override the panel class, the menubar class MUST come AFTER (if not, the entire panel will be filled up with the panel bar background.

widget_class "*MenuItem.*" style "melancholy-menu-item"
widget_class "*MenuItem.*ProgressBar*" style "melancholy-default"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton" style "melancholy-combo"
widget_class "*.GtkCombo.GtkButton"    style "melancholy-combo"
# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" style "melancholy-tasklist"
widget "gtk-tooltips" style "melancholy-tooltips"
widget "gtk-tooltip" style "melancholy-tooltips"

# treeview stuff
widget_class "*.GtkTreeView.GtkButton" style "melancholy-tree"
widget_class "*.GtkCTree.GtkButton" style "melancholy-tree"
widget_class "*.GtkList.GtkButton" style "melancholy-tree"
widget_class "*.GtkCList.GtkButton" style "melancholy-tree"
widget_class "*.GtkFrame.GtkLabel" style "melancholy-frame-title"

# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox" style "melancholy-notebook"
widget_class "*.GtkNotebook.*.GtkViewport" style "melancholy-notebook"

# these should really use base and text colors instead
widget_class "*GtkCTree*" style "evolution-hack"
widget_class "*GtkList*" style "evolution-hack"
widget_class "*GtkCList*" style "evolution-hack"
widget_class "*.ETree.*" style "evolution-hack"

widget "*.nautilus-extra-view-widget" style:highest "extra-view-widgets"
