Skip to content

Instantly share code, notes, and snippets.

@segphault
Created April 3, 2009 00:10
Show Gist options
  • Save segphault/89574 to your computer and use it in GitHub Desktop.
Save segphault/89574 to your computer and use it in GitHub Desktop.
My custom Murrine-based GTK+ theme
# MurrinaSegPhault v0.04
# Uses Murrina Engine by Cimi
style "theme-default"
{
GtkButton::default_border = { 1, 1, 1, 1 }
GtkButton::default_outside_border = { 2, 2, 2, 2 }
GtkRange ::trough_border = 0
GtkPaned ::handle_size = 8
GtkRange ::slider_width = 15
GtkRange ::stepper_size = 15
GtkScrollbar ::min_slider_length = 30
GtkCheckButton ::indicator_size = 14
GtkMenuBar ::internal-padding = 0
GtkTreeView ::expander_size = 12
GtkExpander ::expander_size = 14
xthickness = 1
ythickness = 1
fg[NORMAL] = @fg_color #"#000000"
fg[PRELIGHT] = @fg_color #"#000000"
fg[ACTIVE] = @fg_color #"#000000"
fg[SELECTED] = @selected_fg_color #"#000000"
fg[INSENSITIVE] = darker(@bg_color) #"#beb399"
bg[NORMAL] = @bg_color #"#f7f7f7"
bg[PRELIGHT] = shade(1.02, @bg_color) # "#f7f7f7"
bg[ACTIVE] = shade(0.9, @bg_color) # "#f7f7f7"
bg[SELECTED] = @selected_bg_color # "#84BEFF" # "#abd1f8"
bg[INSENSITIVE] = @bg_color # "#ffffff"
text[NORMAL] = @text_color #"#ffffff"
text[ACTIVE] = @selected_fg_color #"#4184dc"
text[PRELIGHT] = @text_color #"#ffffff"
text[INSENSITIVE] = darker(@bg_color) #"#ffffff"
text[SELECTED] = @selected_fg_color #"#4184dc"
base[NORMAL] = @base_color #"#000000"
base[INSENSITIVE] = @bg_color #"#aaafb5"
base[SELECTED] = @selected_bg_color #"#ffffff"
base[ACTIVE] = shade(0.9, @selected_bg_color) #"#ffffff"
base[PRELIGHT] = shade(0.95, @bg_color) #"#000000"
engine "murrine" {
contrast = 1.0
scrollbarstyle = 4 # Enable or disable circles, stripes, handles
listviewstyle = 1 # 0 = nothing, 1 = dotted
menuitemstyle = 2 # 0 = flat, 1 = glassy, 2 = striped
scrollbar_color = "#84BEFF" # "#abd1f8"
glazestyle = 4 # 0 = flat hilight, 1 = curved hilight, 2 = concave style, 3 = top curved hilight, 4 = beryl style
menubarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
menubaritemstyle = 0 # 0 = menuitem look, 1 = button look
listviewheaderstyle = 1 # 0 = flat, 1 = glassy, 2 = raised
roundness = 3 # 0 = squared, 1 = old default, more will increase roundness
animation = TRUE # FALSE = disabled, TRUE = enabled
stepperstyle = 1
sliderstyle = 1
rgba = TRUE
}
}
style "theme-wide" = "theme-default"
{
xthickness = 2
ythickness = 2
}
style "theme-wider" = "theme-default"
{
xthickness = 3
ythickness = 3
}
style "theme-button" = "theme-wider"
{
bg[NORMAL] = "#ffffff"
bg[PRELIGHT] = "#84BEFF" #"#abd1f8"
bg[ACTIVE] = "#84BEFF" #"#abd1f8"
}
style "theme-scale" = "theme-button"
{
engine "clearlooks" {}
}
style "theme-scrollbar" = "theme-button"
{
bg[ACTIVE] = "#ffffff"
xthickness = 2
ythickness = 2
engine "murrine" { glazestyle = 2 }
}
style "theme-range" = "theme-default"
{
xthickness = 3
ythickness = 3
}
style "theme-notebook" = "theme-wide"
{
base[SELECTED] = "#9cbcdf" # Tab selection color
bg[ACTIVE] = "#DEDEDE" # "#e6eff8" # Unselected tabs
engine "clearlooks" {
style = GLOSSY
}
}
style "theme-tasklist" = "theme-default"
{
xthickness = 5
ythickness = 3
bg[ACTIVE] = "#000000"
}
style "theme-menu" = "theme-default"
{
xthickness = 2
ythickness = 1
bg[NORMAL] = "#ffffff"
}
style "theme-menu-item" = "theme-default"
{
xthickness = 2
ythickness = 3
fg[PRELIGHT] = "#000000"
text[PRELIGHT] = "#000000"
base[PRELIGHT] = "#5a81b4" # Selection color
}
style "theme-menubar" = "theme-default" { engine "murrine" { contrast = 0.0 } }
style "theme-toolbar" = "theme-default" { engine "murrine" { contrast = 0.0 } }
style "theme-menubar-item" = "theme-menu-item"
{
}
style "theme-tree" = "theme-default"
{
GtkTreeView::odd_row_color = "#f7f7ff"
GtkTreeView::even_row_color = "#ffffff"
}
style "theme-tooltips" = "theme-default"
{
xthickness = 4
ythickness = 4
bg[NORMAL] = "#C2DDFF"
}
style "theme-progressbar" = "theme-wide"
{
xthickness = 0
ythickness = 0
fg[PRELIGHT] = "#000000"
}
style "theme-combo" = "theme-button"
{
}
style "theme-frame-title" = "theme-default"
{
#fg[NORMAL] = "#2a2a2a"
}
style "metacity-frame" = "theme-default"
{
#bg[SELECTED] = "#84BEFF" #"#abd1f8"
}
style "theme-slab" = "theme-default"
{
bg[SELECTED] = "#84b0da" # Outline
bg[NORMAL] = "#fdfbf7" # Base bg color
bg[ACTIVE] = "#e9eef5" # Right side bg color
fg[NORMAL] = "#6a97c5" # Left side caption text color
fg[INSENSITIVE] = "#5c8dbf" # Right side caption text color
}
style "theme-slab-group" = "theme-default"
{
#bg[SELECTED] = "#adc09b" # Slab group text
}
style "theme-shell" = "theme-default"
{
bg[ACTIVE] = "#e9eef5" # Left side bg color
fg[NORMAL] = "#5c8dbf" # Left side text color
fg[INSENSITIVE] = "#bdcce1" # Left side line
base[NORMAL] = "#fdfbf7" # Base bg color
text[INSENSITIVE] = "#6a97c5" # Base text color
}
style "evolution-hack" = "clearlooks-default"
{
bg[ACTIVE] = "#96b9d5"
bg[SELECTED] = "#6798cb"
fg[ACTIVE] = "#000000"
fg[SELECTED] = "#ffffff"
}
style "theme-shell-highlight" = "theme-default"
{
}
#nautilus search stripe and other specialties
style "extra-view" {
bg[NORMAL] = "#729fcf"
font = "Sans 6"
}
#nautilus search stripe
widget "*.nautilus-extra-view-widget" style:highest "extra-view"
# Toolbar
class "GtkToolbar" style "theme-toolbar"
# GNOME-main-menu slab
class "SlabWindow" style "theme-slab"
# App Browser & Control Center
class "ShellWindow" style "theme-shell"
widget_class "ShellWindow.*.GtkEventBox" style "theme-shell-highlight"
# Evolution
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 styles
class "GtkWidget" style "theme-default"
class "GtkButton" style "theme-button"
class "GtkScale" style "theme-range"
class "GtkCombo" style "theme-button"
class "GtkScale" style "theme-scale"
class "GtkScrollbar" style "theme-scrollbar"
class "GtkRange" style "theme-wide"
class "GtkFrame" style "theme-wide"
class "GtkMenu" style "theme-menu"
class "GtkEntry" style "theme-wider"
class "GtkMenuItem" style "theme-menu-item"
class "GtkNotebook" style "theme-notebook"
class "GtkProgressBar" style "theme-progressbar"
class "*MenuBar*" style "theme-menubar"
widget_class "*MenuItem.*" style "theme-menu-item"
widget_class "*MenuBar.*" style "theme-menubar-item"
# combobox stuff
widget_class "*.GtkComboBox.GtkButton" style "theme-combo"
widget_class "*.GtkCombo.GtkButton" style "theme-combo"
# tooltips stuff
widget_class "*.tooltips.*.GtkToggleButton" style "theme-tasklist"
widget "gtk-tooltips" style "theme-tooltips"
# treeview stuff
widget_class "*.GtkTreeView.GtkButton" style "theme-tree"
widget_class "*.GtkCTree.GtkButton" style "theme-tree"
widget_class "*.GtkList.GtkButton" style "theme-tree"
widget_class "*.GtkCList.GtkButton" style "theme-tree"
widget_class "*.GtkFrame.GtkLabel" style "theme-frame-title"
# notebook stuff
widget_class "*.GtkNotebook.*.GtkEventBox" style "theme-notebook"
widget_class "*.GtkNotebook.*.GtkViewport" style "theme-notebook"
# wm stuff
class "MetaFrames" style "metacity-frame"
class "GtkWindow" style "metacity-frame"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment