summaryrefslogtreecommitdiff
path: root/lispref/display.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2004-02-27 17:07:15 +0000
committerEli Zaretskii <eliz@gnu.org>2004-02-27 17:07:15 +0000
commit9fe84db655d27da35d1ff4f5e1b60563cfdccc82 (patch)
tree45b0a9cb46f99d05ad46ee5beaccf76676a1af64 /lispref/display.texi
parent328419c117639c1af9557a9a07d0bfd80d36aeb3 (diff)
downloademacs-9fe84db655d27da35d1ff4f5e1b60563cfdccc82.tar.gz
(Defining Faces): Add description for min-colors. Update example.
Diffstat (limited to 'lispref/display.texi')
-rw-r--r--lispref/display.texi25
1 files changed, 16 insertions, 9 deletions
diff --git a/lispref/display.texi b/lispref/display.texi
index 89e9998094c..63ee6d720f7 100644
--- a/lispref/display.texi
+++ b/lispref/display.texi
@@ -1623,6 +1623,10 @@ What kinds of colors the frame supports---either @code{color},
@item background
The kind of background---either @code{light} or @code{dark}.
+@item min-colors
+An integer that represents the minimum number of colors the frame should
+support, it is compared with the result of @code{display-color-cells}.
+
@item supports
Whether or not the frame can display the face attributes given in
@var{value}@dots{} (@pxref{Face Attributes}). See the documentation
@@ -1644,17 +1648,20 @@ frame must match one of the @var{value}s specified for it in
@example
@group
-(defface region
- `((((type tty) (class color))
- (:background "blue" :foreground "white"))
+ '((((class color) (min-colors 88) (background dark))
+ :background "blue3")
@end group
+ (((class color) (min-colors 88) (background light))
+ :background "lightgoldenrod2")
+ (((class color) (min-colors 16) (background dark))
+ :background "blue3")
+ (((class color) (min-colors 16) (background light))
+ :background "lightgoldenrod2")
+ (((class color) (min-colors 8))
+ :background "blue" :foreground "white")
(((type tty) (class mono))
- (:inverse-video t))
- (((class color) (background dark))
- (:background "blue"))
- (((class color) (background light))
- (:background "lightblue"))
- (t (:background "gray")))
+ :inverse-video t)
+ (t :background "gray"))
@group
"Basic face for highlighting the region."
:group 'basic-faces)