summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-09-28 14:04:49 +0300
committerEli Zaretskii <eliz@gnu.org>2013-09-28 14:04:49 +0300
commit0fe3602a281b967ab1709da511c88f763a86e62a (patch)
treea86076b56b12d08653ecf4cfa234f57870f6f5c8
parentcee18f1fb3c88fdc203e1108323df21f3bedcd15 (diff)
downloademacs-0fe3602a281b967ab1709da511c88f763a86e62a.tar.gz
Define tty-menu-* faces via defface.
-rw-r--r--lisp/faces.el30
1 files changed, 21 insertions, 9 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index b6e85e96276..c891da2f9ba 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -2140,15 +2140,7 @@ terminal type to a different value."
(defun tty-set-up-initial-frame-faces ()
(let ((frame (selected-frame)))
(frame-set-background-mode frame t)
- (face-set-after-frame-default frame)
- (make-face 'tty-menu-enabled-face)
- (make-face 'tty-menu-disabled-face)
- (make-face 'tty-menu-selected-face)
- (set-face-foreground 'tty-menu-enabled-face "yellow")
- (set-face-foreground 'tty-menu-disabled-face "white")
- (set-face-background 'tty-menu-enabled-face "blue")
- (set-face-background 'tty-menu-disabled-face "blue")
- (set-face-background 'tty-menu-selected-face "red")))
+ (face-set-after-frame-default frame)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -2557,6 +2549,26 @@ It is used for characters of no fonts too."
:version "24.1"
:group 'basic-faces)
+;; Faces for TTY menus.
+(defface tty-menu-enabled-face
+ '((t
+ :foreground "yellow" :background "blue" :weight bold))
+ "Face for displaying enabled items in TTY menus."
+ :group 'basic-faces)
+
+(defface tty-menu-disabled-face
+ '((((class color) (min-colors 16))
+ :foreground "lightgray" :background "blue")
+ (t
+ :foreground "white" :background "blue"))
+ "Face for displaying disabled items in TTY menus."
+ :group 'basic-faces)
+
+(defface tty-menu-selected-face
+ '((t :background "red"))
+ "Face for displaying the currently selected item in TTY menus."
+ :group 'basic-faces)
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Manipulating font names.