diff options
| author | Chong Yidong | 2008-11-18 07:05:36 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-11-18 07:05:36 +0000 |
| commit | d9ce48d61886b921a2b4120fe4dec052151d5bf2 (patch) | |
| tree | 6f19516cb650cb50cb04c3f9f8a9b0d996a3e947 | |
| parent | cc0910af5860705010559625f4b8827d3e3bbfe1 (diff) | |
| download | emacs-d9ce48d61886b921a2b4120fe4dec052151d5bf2.tar.gz emacs-d9ce48d61886b921a2b4120fe4dec052151d5bf2.zip | |
(Color Parameters): Document alpha parameter.
| -rw-r--r-- | doc/lispref/frames.texi | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 2f812ad2ff2..bd7ef338781 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -230,6 +230,8 @@ only the @code{height}, @code{width}, @code{name}, @code{title}, | |||
| 230 | parameters do something special. If the terminal supports colors, the | 230 | parameters do something special. If the terminal supports colors, the |
| 231 | parameters @code{foreground-color}, @code{background-color}, | 231 | parameters @code{foreground-color}, @code{background-color}, |
| 232 | @code{background-mode} and @code{display-type} are also meaningful. | 232 | @code{background-mode} and @code{display-type} are also meaningful. |
| 233 | If the terminal supports frame transparency, the parameter | ||
| 234 | @code{alpha} is also meaningful. | ||
| 233 | 235 | ||
| 234 | You can use frame parameters to define frame-local bindings for | 236 | You can use frame parameters to define frame-local bindings for |
| 235 | variables. @xref{Frame-Local Variables}. | 237 | variables. @xref{Frame-Local Variables}. |
| @@ -748,6 +750,27 @@ If your monitor displays colors too light, you should specify a | |||
| 748 | @code{screen-gamma} value smaller than 2.2. This requests correction | 750 | @code{screen-gamma} value smaller than 2.2. This requests correction |
| 749 | that makes colors darker. A screen gamma value of 1.5 may give good | 751 | that makes colors darker. A screen gamma value of 1.5 may give good |
| 750 | results for LCD color displays. | 752 | results for LCD color displays. |
| 753 | |||
| 754 | @item alpha | ||
| 755 | @cindex opacity, frame | ||
| 756 | @cindex transparency, frame | ||
| 757 | @vindex frame-alpha-lower-limit | ||
| 758 | This parameter specifies the opacity of the frame, on graphical | ||
| 759 | displays that support variable opacity. It should be an integer | ||
| 760 | between 0 and 100, where 0 means completely transparent and 100 means | ||
| 761 | completely opaque. It can also have a @code{nil} value, which tells | ||
| 762 | Emacs not to set the frame opacity (leaving it to the window manager). | ||
| 763 | |||
| 764 | To prevent the frame from disappearing completely from view, the | ||
| 765 | variable @var{frame-alpha-lower-limit} defines a lower opacity limit. | ||
| 766 | If the value of the frame parameter is less than the value of this | ||
| 767 | variable, Emacs uses the latter. By default, | ||
| 768 | @var{frame-alpha-lower-limit} is 20. | ||
| 769 | |||
| 770 | The @code{alpha} frame parameter can also be a cons cell | ||
| 771 | @code{(@samp{active} . @samp{inactive})}, where @samp{active} is the | ||
| 772 | opacity of the frame when it is selected, and @samp{inactive} is the | ||
| 773 | opactity when it is not selected. | ||
| 751 | @end table | 774 | @end table |
| 752 | 775 | ||
| 753 | These frame parameters are semi-obsolete in that they are automatically | 776 | These frame parameters are semi-obsolete in that they are automatically |