# 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:#101010\nbg_color:#fbf8f1\nbase_color:#ffffff\ntext_color:#000000\nselected_bg_color:#6798cb\nselected_fg_color:#ffffff\ntooltip_bg_color:#FFFFBF\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

  	GtkTreeView::odd_row_color 	= shade (0.929458256, @base_color)
#  	GtkTreeView::even_row_color 	= @base_color

	fg[NORMAL]        		= @fg_color
	fg[PRELIGHT]      		= @fg_color
	fg[ACTIVE]        		= @text_color
	fg[SELECTED]      		= @selected_fg_color
  	fg[INSENSITIVE]   		= shade (0.9, @bg_color)

  	bg[NORMAL]        		= @bg_color
  	bg[PRELIGHT]      		= shade (1.05, @bg_color)
  	bg[ACTIVE]        		= shade (0.86, @bg_color)
  	bg[SELECTED]      		= @selected_bg_color
	bg[INSENSITIVE]	  		= shade (0.9437, @bg_color)
	
 	base[NORMAL]      		= @base_color
  	base[PRELIGHT]   		= shade (1.05, @selected_bg_color)
  	base[SELECTED]    		= @selected_bg_color
  	base[INSENSITIVE] 		= @bg_color
 	base[ACTIVE]      		= shade (1.15, @selected_bg_color) 
 	base[PRELIGHT]    		= shade (1.05, @selected_bg_color)

	text[NORMAL]			= @text_color
	text[PRELIGHT]			= @text_color
	text[ACTIVE]			= @selected_fg_color
	text[SELECTED]			= @selected_fg_color
	text[INSENSITIVE]		= darker (@selected_fg_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		= "#6798cb"
		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]   = shade (1.15, @selected_bg_color)
	bg[SELECTED] = @selected_bg_color
	fg[ACTIVE]   = @text_color
}

style "fedora-bright" = "fedora-default"
{
}


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

style "fedora-wide-bright" = "fedora-wide"
{
}

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

style "fedora-wider-bright" = "fedora-wider"
{
}

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

style "fedora-notebook" = "fedora-wide-bright"
{
	base[SELECTED]   	= shade (1.15, @selected_bg_color)
	bg[ACTIVE]        	= shade (0.92, @bg_color)
}

style "fedora-menubar" = "fedora-default"
{
}

style "fedora-panel-menubar" = "fedora-menubar"
{
}

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

}

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

  	fg[PRELIGHT] 	= @base_color
  	text[PRELIGHT] 	= @base_color
  	base[PRELIGHT] 	= shade (0.9, @selected_bg_color)
}

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

style "fedora-frame-title" = "fedora-default"
{
  	fg[NORMAL]	=  mix(0.1,  @bg_color, @text_color)
}

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

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

style "fedora-progressbar" = "fedora-wide"
{
  	bg[NORMAL]      = shade (0.82, @bg_color)
	fg[PRELIGHT]	= shade(1.1946, @selected_fg_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"
{
}

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

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

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

style "fedora-spin-button" = "fedora-entry"
{
}

style "fedora-metacity-frame" = "fedora-default"
{
 	bg[SELECTED]  = shade (0.905, @selected_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"
widget_class "*GtkList*"	style "evolution-hack"
widget_class "*GtkCList*"	style "evolution-hack"
widget_class "*.ETree.*"	style "evolution-hack"
widget_class "*EInfoLabel*"	style "evolution-hack"

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

# wm stuff
class "MetaFrames" 	  style "fedora-metacity-frame"
class "GtkWindow"      style "fedora-metacity-frame"

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