Skip to content

Commit

Permalink
fix(gtk2): make button fg changeable
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Dec 31, 2014
1 parent b7d255a commit 7f60598
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions gtk-2.0/gtkrc
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,24 @@ style "clearlooks-notebook" = "clearlooks-notebook-bg" {
# Various Standard Widgets

style "murrine-button" = "murrine-wider" {
fg[NORMAL] = @btn_fg_color
fg[PRELIGHT] = @btn_fg_color
fg[ACTIVE] = @btn_fg_color
fg[INSENSITIVE] = @btn_fg_color

bg[NORMAL] = @btn_bg_color
bg[PRELIGHT] = shade (1.10, @btn_bg_color)
bg[SELECTED] = shade (0.7, @btn_bg_color)
bg[ACTIVE] = shade (0.95, @btn_bg_color)
bg[INSENSITIVE] = shade (0.85, @btn_bg_color)

engine "murrine" {
engine "murrine" {
}
}

style "murrine-buttonlabel" {
fg[NORMAL] = @btn_fg_color
fg[PRELIGHT] = @btn_fg_color
fg[SELECTED] = @btn_fg_color
fg[ACTIVE] = @btn_fg_color
fg[INSENSITIVE] = @btn_fg_color

engine "murrine" {
}
}

Expand Down Expand Up @@ -779,3 +786,7 @@ widget "xfwm4-tabwin*" style "xfwm-tabwin"
widget "xfwm4-tabwin*GtkButton*" style "xfwm-tabwin-button"
widget_class "*XfsmLogoutDialog*" style "xfsm-logout"
widget_class "*XfsmLogoutDialog*GtkButton" style "xfsm-logout-button"

# button fg workaround:
widget_class "*.<GtkButton>.<GtkLabel>" style "murrine-buttonlabel"
widget_class "*<GtkButton>*<GtkLabel>*" style:highest "murrine-buttonlabel"

0 comments on commit 7f60598

Please sign in to comment.