[CM] Changing the menu font in Gtk Snd

Frank Barknecht fbar@footils.org
Sat, 17 Apr 2004 13:25:48 +0200


--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hallo,
Bill Schottstaedt hat gesagt: // Bill Schottstaedt wrote:

> > Screenshot here: http://footils.org/images/snd-gtkrc.png
> 
> That is amazing!  Can I include it in the Snd documentation?

The picture? Yes, feel free to do so. It is using the Xfce-b5 theme
for Gtk2. I attached my slightly extended current Snd.gtkrc, which has
the colored buttons in it again. The trick used is, to first include
some gtkrc according to taste, and then only include those things, you do
want to have overwritten. In the example, only the button colors are
active, the rest is from ~/.gtkrc

Ciao
-- 
 Frank Barknecht                               _ ______footils.org__

--UugvWAfsgieZRqgk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Snd.gtkrc"

include "/home/freak/.gtkrc-2.0"

# This is the same as Snd.gtkrc
# style "default"
# {
#   font_name = "Serif 11"
# 
#   fg[NORMAL]      = { 0.0,  0.00, 0.0 }
#   text[NORMAL]    = { 0.0,  0.0,  0.0 }
#   bg[NORMAL]      = { 0.93, 0.93, 0.87 }
#   bg[ACTIVE]      = { 0.80, 0.80, 0.75 }
#   bg[INSENSITIVE] = { 0.93, 0.93, 0.87 }
#   base[NORMAL]    = { 1.00, 1.00, 1.00 }
#   bg[PRELIGHT]    = { 0.70, 0.70, 0.64 }
#   fg[PRELIGHT]    = { 1.0,  0.0,  0.0}
# 
#   GtkPaned::handle_size = 6
#   GtkButton::default_border = { 0, 0, 0, 0 }
#   GtkButton::default_outside_border = { 0, 0, 0, 0 }
# }
# 
style "default_button" = "default"
{
  bg[ACTIVE]   = { 0.79, 0.88, 1.0 }
  bg[SELECTED] = { 0.79, 0.88, 1.0 }
}
# 
# style "default_menu" = "default"
# {
#   bg[NORMAL] = { 1.0, 1.0, 0.94 }
# }
# 
# style "default_pane" = "default"
# {
#   bg[NORMAL] = { 0.56, 0.93, 0.56 }
#   bg[PRELIGHT] = { 0.26, 0.8, 0.26}
# }
# 
# style "default_entry" = "default"
# {
#   base[ACTIVE]      = { 0.93, 0.93, 0.87 }
#   base[SELECTED]    = { 0.80, 0.80, 0.75 }
#   base[PRELIGHT]    = { 1.0, 1.0, 1.0}
#   base[NORMAL]      = { 0.93, 0.93, 0.87 }
#   base[INSENSITIVE] = { 0.93, 0.93, 0.87 }
#   bg[ACTIVE]        = { 1.0, 1.0, 1.0 }
#   bg[SELECTED]      = { 1.0, 1.0, 1.0 }
#   bg[PRELIGHT]      = { 1.0, 1.0, 1.0 }
#   text[ACTIVE]      = { 0.0, 0.0, 0.0 }
#   text[SELECTED]    = { 0.0, 0.0, 0.0 }
#   text[PRELIGHT]    = { 0.0, 0.0, 0.0 }
# }
# 
# style "default_text" = "default_entry"
# {
#   base[NORMAL] = { 1.0, 1.0, 1.0 }
# }
# 
# style "default_slider" = "default"
# {
#   bg[NORMAL] = { 0.90, 0.90, 0.85 }
#   bg[ACTIVE] = { 0.80, 0.80, 0.75 }
#   bg[PRELIGHT] = { 0.70, 0.70, 0.64 }
# 
#   GtkRange::slider_width = 10
#   GtkRange::stepper_size = 10
# }
# 
# class "GtkWidget" style "default"
 class "GtkButton" style "default_button"
# class "GtkMenu" style "default_menu"
# class "GtkMenuBar" style "default_menu"
# class "GtkEntry" style "default_entry"
# class "GtkTextView" style "default_text"
# class "GtkPaned" style "default_pane"
# class "GtkRange" style "default_slider"
# 
# style "zoom_slider" = "default_slider"
# {
#   bg[NORMAL] = { 0.70, 0.70, 0.64 }
#   bg[ACTIVE] = { 0.54, 0.54, 0.51 }
#   bg[PRELIGHT] = { 0.44, 0.44, 0.36 }
# 
#   GtkRange::slider_width = 12
#   GtkRange::stepper_size = 12
# }
# 
# widget "*.zx_slider" style "zoom_slider"
# widget "*.zy_slider" style "zoom_slider"
# widget "*.gzy_slider" style "zoom_slider"
# widget "*.panel_button" style "zoom_slider"
# 
style "listener" = "default"
{
  font_name = "Monospace 10"

#  base[NORMAL] = { 0.94, 0.97, 1.0 }
#  text[NORMAL] = { 0.0, 0.0, 0.0 }
}

widget "*.listener_text" style "listener"

style "help" = "default_button"
{
  bg[NORMAL] = { 0.73, 0.82, 0.93 }
  bg[PRELIGHT] = { 0.73, 0.82, 0.93 }
}

widget "*.help_button" style "help"

style "quit" = "default_button"
{
  bg[NORMAL] = { 0.8, 0.36, 0.36 }
  bg[PRELIGHT] = { 0.8, 0.36, 0.36 }
}

widget "*.quit_button" style "quit"

style "doit" = "default_button"
{
  bg[NORMAL] = { 0.56, 0.93, 0.56 }
  bg[PRELIGHT] = { 0.56, 0.93, 0.56 }
}

widget "*.doit_button" style "doit"

style "doit_again" = "default_button"
{
  bg[NORMAL] = { 0.79, 1.0, 0.44 }
  bg[PRELIGHT] = { 0.79, 1.0, 0.44 }
}

widget "*.doit_again_button" style "doit_again"

style "reset" = "default_button"
{
  bg[NORMAL] = { 1.0, 0.85, 0.24 }
  bg[PRELIGHT] = { 1.0, 0.85, 0.24 }
}

widget "*.reset_button" style "reset"


--UugvWAfsgieZRqgk--