# HG changeset patch # User Jan Dj¸«£rv # Date 1065982962 0 # Node ID 34537e2e1a058414effdc513a8e24ca5bf1989a8 # Parent 7e0c272a7b28f3d90ddcbfd8e9466bdbe48b4694 * xresources.texi (GTK resources): Added a note that some themes disallow customizations. Added scroll theme example. diff -r 7e0c272a7b28 -r 34537e2e1a05 man/ChangeLog --- a/man/ChangeLog Sun Oct 12 17:42:23 2003 +0000 +++ b/man/ChangeLog Sun Oct 12 18:22:42 2003 +0000 @@ -1,3 +1,8 @@ +2003-10-12 Jan Dj,Ad(Brv + + * xresources.texi (GTK resources): Added a note that some themes + disallow customizations. Added scroll theme example. + 2003-10-08 Nick Roberts * speedbar.texi: Remove paragraph for GUD that is no longer true. diff -r 7e0c272a7b28 -r 34537e2e1a05 man/xresources.texi --- a/man/xresources.texi Sun Oct 12 17:42:23 2003 +0000 +++ b/man/xresources.texi Sun Oct 12 18:22:42 2003 +0000 @@ -559,7 +559,14 @@ customizing specific GTK widget features. To customize Emacs font, background, faces etc., use the normal X resources, see @ref{Resources}. -In these files you first defines a style and then how to apply that style + NOTE: Some themes does not allow cutomizations and the mechanisms +described here may not work for those themes. The theme may ignore the +attempt to customization, or things are just not drawn correctly. +Also, it is recommended that you use @file{~/.emacs.d/gtkrc} for +customizations, @file{~/.gtkrc-2.0} seems to be ignored when running +GConf with Gnome. + + In these files you first defines a style and then how to apply that style to widgets (@pxref{GTK widget names}). Here is an example of how to change the font for Emacs menus: @@ -574,6 +581,21 @@ @end smallexample + Here is a more elaborate example, showing how to change the parts of +the scroll bar: +@smallexample +style "scroll" +@{ + fg[NORMAL] = "red"@ @ @ @ @ # The arrow color. + bg[NORMAL] = "yellow"@ @ # The thumb and background around the arrow. + bg[ACTIVE] = "blue"@ @ @ @ # The trough color. + bg[PRELIGHT] = "white"@ # The thumb color when the mouse is over it. +@} + +widget "*verticalScrollBar*" style "scroll" + +@end smallexample + There are some things you can set without using any style or widget name, which affect GTK as a whole. Most of these are poorly documented, but can be found in the `Properties' section of the documentation page for