/[emacs]/emacs/man/xresources.texi
ViewVC logotype

Diff of /emacs/man/xresources.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by jhd, Mon Sep 29 15:53:11 2003 UTC revision 1.22 by jhd, Sun Oct 12 18:22:42 2003 UTC
# Line 559  the standard GTK @file{~/.gtkrc-2.0} fil Line 559  the standard GTK @file{~/.gtkrc-2.0} fil
559  customizing specific GTK widget features.  To customize Emacs font,  customizing specific GTK widget features.  To customize Emacs font,
560  background, faces etc., use the normal X resources, see @ref{Resources}.  background, faces etc., use the normal X resources, see @ref{Resources}.
561    
562  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
563    described here may not work for those themes.  The theme may ignore the
564    attempt to customization, or things are just not drawn correctly.
565    Also, it is recommended that you use @file{~/.emacs.d/gtkrc} for
566    customizations, @file{~/.gtkrc-2.0} seems to be ignored when running
567    GConf with Gnome.
568    
569      In these files you first defines a style and then how to apply that style
570  to widgets (@pxref{GTK widget names}).  Here is an example of how to  to widgets (@pxref{GTK widget names}).  Here is an example of how to
571  change the font for Emacs menus:  change the font for Emacs menus:
572    
# Line 574  widget "*emacs-menuitem*" style "menufon Line 581  widget "*emacs-menuitem*" style "menufon
581    
582  @end smallexample  @end smallexample
583    
584      Here is a more elaborate example, showing how to change the parts of
585    the scroll bar:
586    @smallexample
587    style "scroll"
588    @{
589      fg[NORMAL] = "red"@ @ @ @ @ # The arrow color.
590      bg[NORMAL] = "yellow"@ @ # The thumb and background around the arrow.
591      bg[ACTIVE] = "blue"@ @ @ @ # The trough color.
592      bg[PRELIGHT] = "white"@ # The thumb color when the mouse is over it.
593    @}
594    
595    widget "*verticalScrollBar*" style "scroll"
596    
597    @end smallexample
598    
599    There are some things you can set without using any style or widget name,    There are some things you can set without using any style or widget name,
600  which affect GTK as a whole.  Most of these are poorly documented, but can  which affect GTK as a whole.  Most of these are poorly documented, but can
601  be found in the `Properties' section of the documentation page for  be found in the `Properties' section of the documentation page for

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26