diff options
| author | Jan Djärv | 2003-10-12 18:22:42 +0000 |
|---|---|---|
| committer | Jan Djärv | 2003-10-12 18:22:42 +0000 |
| commit | 583a618e46f4dfd8d987bf3158a46b0362505889 (patch) | |
| tree | 42aae6cb36e4f98e62a73e49d6fc7cbbf77d16e4 | |
| parent | 8937a0e13a51d8ec779eacabb524f6bffc0c7523 (diff) | |
| download | emacs-583a618e46f4dfd8d987bf3158a46b0362505889.tar.gz emacs-583a618e46f4dfd8d987bf3158a46b0362505889.zip | |
* xresources.texi (GTK resources): Added a note that some themes
disallow customizations. Added scroll theme example.
| -rw-r--r-- | man/ChangeLog | 5 | ||||
| -rw-r--r-- | man/xresources.texi | 24 |
2 files changed, 28 insertions, 1 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index 28968d0d411..c8d2d18b397 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-10-12 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xresources.texi (GTK resources): Added a note that some themes | ||
| 4 | disallow customizations. Added scroll theme example. | ||
| 5 | |||
| 1 | 2003-10-08 Nick Roberts <nick@nick.uklinux.net> | 6 | 2003-10-08 Nick Roberts <nick@nick.uklinux.net> |
| 2 | 7 | ||
| 3 | * speedbar.texi: Remove paragraph for GUD that is no longer true. | 8 | * speedbar.texi: Remove paragraph for GUD that is no longer true. |
diff --git a/man/xresources.texi b/man/xresources.texi index 4c4e840e776..3141aee2d34 100644 --- a/man/xresources.texi +++ b/man/xresources.texi | |||
| @@ -559,7 +559,14 @@ the standard GTK @file{~/.gtkrc-2.0} file or with the Emacs specific | |||
| 559 | customizing specific GTK widget features. To customize Emacs font, | 559 | customizing specific GTK widget features. To customize Emacs font, |
| 560 | background, faces etc., use the normal X resources, see @ref{Resources}. | 560 | background, faces etc., use the normal X resources, see @ref{Resources}. |
| 561 | 561 | ||
| 562 | In these files you first defines a style and then how to apply that style | 562 | 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 | ||
| 563 | to widgets (@pxref{GTK widget names}). Here is an example of how to | 570 | to widgets (@pxref{GTK widget names}). Here is an example of how to |
| 564 | change the font for Emacs menus: | 571 | change the font for Emacs menus: |
| 565 | 572 | ||
| @@ -574,6 +581,21 @@ widget "*emacs-menuitem*" style "menufont" | |||
| 574 | 581 | ||
| 575 | @end smallexample | 582 | @end smallexample |
| 576 | 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 | |||
| 577 | There are some things you can set without using any style or widget name, | 599 | There are some things you can set without using any style or widget name, |
| 578 | which affect GTK as a whole. Most of these are poorly documented, but can | 600 | which affect GTK as a whole. Most of these are poorly documented, but can |
| 579 | be found in the `Properties' section of the documentation page for | 601 | be found in the `Properties' section of the documentation page for |