Skip to content

Instantly share code, notes, and snippets.

@frozencemetery
Last active October 12, 2015 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frozencemetery/3968411 to your computer and use it in GitHub Desktop.
Save frozencemetery/3968411 to your computer and use it in GitHub Desktop.
gtkrc (gtk2) for dark square theme on Nodoka engine
# 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:#D4D4D4\nbg_color:#333333\nbase_color:#474747\ntext_color:#D4D4D4\nselected_bg_color:#ff7228\nselected_fg_color:#ffffff\ntooltip_bg_color:#ff7228\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] = @fg_color
fg[SELECTED] = @selected_fg_color
fg[INSENSITIVE] = shade (0.7019, @selected_fg_color)
bg[NORMAL] = @bg_color
bg[PRELIGHT] = shade (1.0346, @bg_color)
bg[ACTIVE] = shade (0.9437, @bg_color)
bg[SELECTED] = @selected_bg_color
bg[INSENSITIVE] = shade (0.9437, @bg_color)
base[NORMAL] = @base_color
base[PRELIGHT] = shade (0.3967, @base_color)
base[ACTIVE] = shade (0.52, @selected_fg_color)
base[SELECTED] = @selected_bg_color
base[INSENSITIVE] = shade (0.9437, @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, "#ff7228")
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 = 0 # 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 = "#ff7228"
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
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.02,@bg_color)
bg[ACTIVE] = shade (0.85,@bg_color)
bg[PRELIGHT] = mix(0.90, shade (1.05,@bg_color), @selected_bg_color)
}
style "fedora-notebook" = "fedora-wide-bright"
{
bg[ACTIVE] = shade (0.80, @bg_color)
bg[INSENSITIVE] = shade (0.9221, @bg_color)
bg[NORMAL] = shade (1.0346, @bg_color)
bg[PRELIGHT] = lighter (@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] = @base_color
}
style "fedora-menu-item" = "fedora-default"
{
xthickness = 3
ythickness = 3
bg[PRELIGHT] = @bg_color
bg[SELECTED] = shade (0.9, @selected_bg_color)
fg[PRELIGHT] = @selected_fg_color
text[PRELIGHT] = @selected_fg_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"
{
bg[NORMAL] = shade (0.80, @bg_color)
bg[SELECTED] = @selected_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-button"
{
}
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"
{
}
# 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"
#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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment