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 |
|
|
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 |