# Fedora Nodoka gtkrc, based on Aqualooks
#
# Authors:
# Daniel Geiger <dgeiger_343@yahoo.com>
# Martin Sourada <martin.sourada@seznam.cz>
#
# Uses the Nodoka theme engine, forked from Murrine theme engine

gtk_color_scheme = "fg_color:#000\nbg_color:#E6E6E6\nbase_color:#fff\ntext_color:#1A1A1A\nselected_bg_color:#8AC4F1\nselected_fg_color:#000\ntooltip_bg_color:#F5E7B5\ntooltip_fg_color:#000"

style "fedora-default"
{

	GtkButton::default_border	= { 0, 0, 0, 0 }
	GtkButton::child-displacement-x	= 0
	GtkButton::child-displacement-y	= 1

	GtkRange::trough_border		= 0
	GtkRange::slider_width		= 14
	GtkRange::stepper_size		= 14
  	GtkRange::stepper_spacing	= 0

	GtkScale::slider-length		= 28

	GtkPaned::handle_size		= 6

	GtkScrollbar::min_slider_length	= 40
	GtkCheckButton::indicator_size	= 13
  	GtkRadioButton::indicator_size	= 13
	GtkMenuBar::internal-padding	= 0
	GtkTreeView::expander_size	= 14
	GtkExpander::expander_size	= 16

	xthickness			= 1
	ythickness			= 1

	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 (0.9, @bg_color)

	base[NORMAL]      = @base_color
	base[PRELIGHT]    = shade (0.95, @bg_color)
	base[ACTIVE]      = shade (0.9, @selected_bg_color)
	base[SELECTED]    = @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 "nodoka"
	{
#		scrollbar_color		= shade (1.040897799, "#008DD7")
		animation		= TRUE # FALSE = disabled, TRUE = enabled
#		contrast		= 1.0
#		gradients		= FALSE
#		hilight_ratio		= 0.909090909
		listviewheaderstyle	= 1 # 0 = flat, 1 = gradient, 2 = raised
		listviewstyle		= 1 # 0 = nothing, 1 = dotted
		menubarstyle		= 3 # 0 = flat, 1 = normal raised gradient, 2 = normal lowered gradient, 3 = menubar gradient
		toolbarstyle		= 2 # 0 = flat, 1 = normal raised gradient, 2 = normal lowered gradient, 3 = menubar gradient
		roundness		= 3 # 0 = squared, 1 = old default, more will increase roundness
		scrollbarstyle		= 1 # 0 = nothing, 1 = circles, 2 = bars
		stripes			= TRUE # enable or disable stripes in progressbars
		bullet_color		= "#4ca6f5"
		focus_fill		= TRUE # enable or disable focus overlay fill
		focus_inner		= FALSE	# TRUE = secondary focus ring inside, FALSE = secondary focus ring outside widgets
	}

}

# 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" = "fedora-default"
{	
	bg[ACTIVE]	= @bg_color
}


style "evolution-hack-tree" = "fedora-default"
{	
	bg[ACTIVE]	= shade (0.8, @bg_color)
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
	fg[ACTIVE]	= @text_color
	fg[SELECTED]	= @selected_fg_color
}

style "fedora-bright" = "fedora-default"
{
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
}


style "fedora-wide" = "fedora-default"
{
	xthickness	= 2
	ythickness	= 2
}

style "fedora-wide-bright" = "fedora-wide"
{
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
}

style "fedora-wider" = "fedora-default"
{
	xthickness	= 3
	ythickness	= 3
}

style "fedora-wider-bright" = "fedora-wider"
{
	bg[SELECTED]	= shade (1.040897799, @selected_bg_color)
}

style "fedora-button" = "fedora-wider"
{
	bg[NORMAL]   = shade (1.04, @bg_color)
	bg[PRELIGHT] = shade (1.06, @bg_color)
	bg[ACTIVE]   = shade (0.85, @bg_color)
}

style "fedora-notebook" = "fedora-wide-bright"
{
	bg[NORMAL] = shade (1.02, @bg_color)
}

style "fedora-menubar" = "fedora-default"
{
#	bg[NORMAL]	= mix (0.8, lighter(@bg_color), shade(1.040897799, @selected_bg_color))
#	bg[NORMAL]	= shade (1.02, @bg_color)
}

style "fedora-panel-menubar" = "fedora-menubar"
{
	fg[PRELIGHT]	= @selected_fg_color
	text[PRELIGHT]	= @selected_fg_color
}

style "fedora-menu" = "fedora-default"
{
	xthickness	= 2

	bg[NORMAL] = shade (1.08, @bg_color)
}

style "fedora-menu-item" = "fedora-default"
{
	xthickness	= 3
	ythickness	= 3

	fg[PRELIGHT] = @selected_fg_color

	# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
	text[NORMAL]       = @fg_color
	text[PRELIGHT]     = @selected_fg_color
	text[SELECTED]     = @selected_fg_color
	text[ACTIVE]       = @fg_color
	text[INSENSITIVE]  = darker (@bg_color)
}

style "fedora-tree" = "fedora-wide"
{
	bg[ACTIVE]	= shade (0.9, @bg_color)
}

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

style "fedora-tooltips"
{
	xthickness	= 4
	ythickness	= 4

	bg[NORMAL]	= @tooltip_bg_color
	fg[NORMAL]	= @tooltip_fg_color
}

style "fedora-progressbar" = "fedora-wide-bright"
{
	fg[PRELIGHT] = @selected_fg_color
  	bg[NORMAL]      = shade (0.86, @bg_color)
 # 	bg[SELECTED]    = @selected_bg_color
}

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

style "fedora-status" = "fedora-wide"
{
	GtkStatusbar	::shadow-type	= GTK_SHADOW_IN
}

style "fedora-entry" = "fedora-wider-bright"
{
	GtkWidget	::focus-line-width	= 2
	GtkEntry	::shadow-type		= GTK_SHADOW_IN
}

style "fedora-scrollbar" = "fedora-button"
{
	text[NORMAL]		= shade (0.2, @bg_color)
	text[PRELIGHT]		= shade (0.2, @bg_color)
	text[ACTIVE]		= @text_color
}

style "fedora-scale" = "fedora-button"
{

	GtkRange	::trough-side-details	= 0
	GtkRange	::slider_width		= 16

	bg[SELECTED]    = shade (1.1, @selected_bg_color)
	fg[PRELIGHT]	= shade(1.1946, @selected_fg_color)
}

style "fedora-checkbutton" = "fedora-button"
{
	bg[PRELIGHT]	= @bg_color
}

style "fedora-spin-button" = "fedora-entry"
{
	bg[NORMAL]   = shade (1.04, @bg_color)
	bg[PRELIGHT] = shade (1.06, @bg_color)
	bg[ACTIVE]   = shade (0.85, @bg_color)
}

# widget styles
class "GtkWidget"	style "fedora-default"
class "GtkButton"	style "fedora-button"
class "GtkCombo"	style "fedora-combo"
class "GtkRange"	style "fedora-wide-bright"
class "GtkFrame"	style "fedora-wide"
class "GtkMenu"		style "fedora-menu"
class "GtkEntry"	style "fedora-entry"
class "GtkMenuItem"	style "fedora-menu-item"
class "GtkNotebook"	style "fedora-notebook"
class "GtkProgressBar"	style "fedora-progressbar"
class "GtkMenuBar"	style "fedora-menubar"
class "GtkStatusbar"	style "fedora-status"
class "GtkScrollbar"	style "fedora-scrollbar"
class "GtkHBox"		style "fedora-wider"
class "GtkScale"	style "fedora-scale"
class "GtkCheckButton"	style "fedora-checkbutton"
class "GtkSpinButton"	style "fedora-spin-button"

widget_class "*MenuItem.*"		style "fedora-menu-item"

# combobox stuff
widget_class "*.GtkComboBox.GtkButton"	style "fedora-combo"
widget_class "*.GtkCombo.GtkButton"	style "fedora-combo"
widget_class "*.GtkComboBox.GtkFrame"	style "fedora-wider"

# tooltips stuff
widget "gtk-tooltip*"			style "fedora-tooltips"

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

# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox"	style "fedora-notebook"
widget_class "*.GtkNotebook.*.GtkViewport"	style "fedora-notebook"
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "fedora-notebook"
widget_class "*<GtkNotebook>*<GtkLayout>"       style "fedora-notebook"

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

#panel bg hack
widget "*Panel*Menu*"		style "fedora-panel-menubar"

#evolution new button workaround (should be fixed in Evo 2.24)
style "fedora-evo-new-button-workaround"
{
	engine "nodoka"
	{
		toolbarstyle = 0
	}
}

widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "fedora-evo-new-button-workaround"

widget_class "*.<GtkProgress>"   	style "fedora-progressbar"

