changeset 40016:75158749d067

(widget-field-face, widget-single-line-field-face): Define special colors for a tty.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 17 Oct 2001 18:44:56 +0000
parents 6f63eabf4e29
children 108a6f3e0498
files lisp/wid-edit.el
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/wid-edit.el	Wed Oct 17 18:26:54 2001 +0000
+++ b/lisp/wid-edit.el	Wed Oct 17 18:44:56 2001 +0000
@@ -120,7 +120,12 @@
   :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 @@
   "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)