summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-10-17 18:39:47 +0000
committerEli Zaretskii <eliz@gnu.org>2001-10-17 18:39:47 +0000
commita6de81d593b2bb7e2bdb6ccf920909d83412a302 (patch)
tree5c9029cbb7cdf7a92634719805a831e68082ffe3
parent891360fecc8528d4b98333bdd1e0e39869c00ac3 (diff)
downloademacs-a6de81d593b2bb7e2bdb6ccf920909d83412a302.tar.gz
(widget-field-face, widget-single-line-field-face):
Define special colors for a tty.
-rw-r--r--lisp/wid-edit.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index dad3082ace6..71af16d28bf 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -120,7 +120,12 @@ This exists as a variable so it can be set locally in certain buffers.")
:type 'face
:group 'widget-faces)
-(defface widget-field-face '((((class grayscale color)
+;; TTY gets special definitions here and in the next defface, because
+;; the gray colors defined for other displays cause black text on a black
+;; background, at least on light-background TTYs.
+(defface widget-field-face '((((type tty))
+ (:background "yellow3"))
+ (((class grayscale color)
(background light))
(:background "gray85"))
(((class grayscale color)
@@ -131,7 +136,9 @@ This exists as a variable so it can be set locally in certain buffers.")
"Face used for editable fields."
:group 'widget-faces)
-(defface widget-single-line-field-face '((((class grayscale color)
+(defface widget-single-line-field-face '((((type tty))
+ (:background "green3"))
+ (((class grayscale color)
(background light))
(:background "gray85"))
(((class grayscale color)