[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/cus-edit.el
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/cus-edit.el |
Date: |
Sat, 31 Dec 2005 16:26:02 +0000 |
Index: emacs/lisp/cus-edit.el
diff -u emacs/lisp/cus-edit.el:1.262 emacs/lisp/cus-edit.el:1.263
--- emacs/lisp/cus-edit.el:1.262 Fri Dec 30 22:56:57 2005
+++ emacs/lisp/cus-edit.el Sat Dec 31 16:26:01 2005
@@ -1405,6 +1405,9 @@
(defvar custom-button nil
"Face used for buttons in customization buffers.")
+(defvar custom-button-mouse nil
+ "Mouse face used for buttons in customization buffers.")
+
(defvar custom-button-pressed nil
"Face used for pressed buttons in customization buffers.")
@@ -1419,6 +1422,8 @@
(custom-set-default variable value)
(setq custom-button
(if value 'custom-button 'custom-button-unraised))
+ (setq custom-button-mouse
+ (if value 'custom-button-mouse 'highlight))
(setq custom-button-pressed
(if value
'custom-button-pressed
@@ -1960,6 +1965,16 @@
;; backward-compatibility alias
(put 'custom-button-face 'face-alias 'custom-button)
+(defface custom-button-mouse
+ '((((type x w32 mac) (class color))
+ (:box (:line-width 2 :style released-button)
+ :background "grey90" :foreground "black"))
+ (t
+ nil))
+ "Mouse face for custom buffer buttons if `custom-raised-buttons' is non-nil."
+ :version "22.1"
+ :group 'custom-faces)
+
(defface custom-button-unraised
'((((min-colors 88)
(class color) (background light)) :foreground "blue1" :underline t)
@@ -1975,6 +1990,9 @@
(setq custom-button
(if custom-raised-buttons 'custom-button 'custom-button-unraised))
+(setq custom-button-mouse
+ (if custom-raised-buttons 'custom-button-mouse 'highlight))
+
(defface custom-button-pressed
'((((type x w32 mac) (class color))
(:box (:line-width 2 :style pressed-button)
@@ -4407,8 +4425,7 @@
(make-local-variable 'widget-button-face)
(setq widget-button-face custom-button)
(set (make-local-variable 'widget-button-pressed-face) custom-button-pressed)
- (if custom-raised-buttons
- (set (make-local-variable 'widget-mouse-face) custom-button))
+ (set (make-local-variable 'widget-mouse-face) custom-button-mouse)
;; When possible, use relief for buttons, not bracketing. This test
;; may not be optimal.
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, (continued)
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/22
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/22
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/23
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/23
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/23
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/24
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/24
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Chong Yidong, 2005/12/24
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/30
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el, Richard M. Stallman, 2005/12/30
- [Emacs-diffs] Changes to emacs/lisp/cus-edit.el,
Chong Yidong <=