# HG changeset patch # User Eli Zaretskii # Date 1003344296 0 # Node ID 75158749d067518e6e164a540ac428318b82d36a # Parent 6f63eabf4e295816f29077f83e47225f42080846 (widget-field-face, widget-single-line-field-face): Define special colors for a tty. diff -r 6f63eabf4e29 -r 75158749d067 lisp/wid-edit.el --- 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)