[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2c8e7ebe694: Improve custom button faces on monochrome displays
From: |
Po Lu |
Subject: |
master 2c8e7ebe694: Improve custom button faces on monochrome displays |
Date: |
Wed, 24 Apr 2024 22:54:45 -0400 (EDT) |
branch: master
commit 2c8e7ebe6947b1268986dc51b0c093a68a18ce55
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Improve custom button faces on monochrome displays
* lisp/cus-edit.el (custom-button, custom-button-mouse)
(custom-button-pressed): Define raised boxes on monochrome
displays.
---
lisp/cus-edit.el | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index f004002333b..8915500a501 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -2251,24 +2251,33 @@ and `face'."
;;; The `custom' Widget.
(defface custom-button
- '((((type x w32 ns haiku pgtk android) (class color)) ; Like default
mode line
+ '((((type x w32 ns haiku pgtk android) (class color)
+ (min-colors 88)) ; Like default mode line
:box (:line-width 2 :style released-button)
- :background "lightgrey" :foreground "black"))
+ :background "lightgrey" :foreground "black")
+ (((type x w32 ns haiku pgtk android))
+ :box (:line-width 2 :style released-button)
+ :background "white" :foreground "black"))
"Face for custom buffer buttons if `custom-raised-buttons' is non-nil."
- :version "21.1"
+ :version "30.1"
:group 'custom-faces)
(defface custom-button-mouse
- '((((type x w32 ns haiku pgtk android) (class color))
+ '((((type x w32 ns haiku pgtk android) (class color)
+ (min-colors 88))
:box (:line-width 2 :style released-button)
:background "grey90" :foreground "black")
+ (((type x w32 ns haiku pgtk android))
+ :box (:line-width 2 :style released-button)
+ ;; Either light gray or a stipple pattern.
+ :background "gray20" :foreground "black")
(t
;; This is for text terminals that support mouse, like GPM mouse
;; or the MS-DOS terminal: inverse-video makes the button stand
;; out on mouse-over.
:inverse-video t))
"Mouse face for custom buffer buttons if `custom-raised-buttons' is non-nil."
- :version "22.1"
+ :version "30.1"
:group 'custom-faces)
(defface custom-button-unraised
@@ -2284,12 +2293,16 @@ and `face'."
(if custom-raised-buttons 'custom-button-mouse 'highlight))
(defface custom-button-pressed
- '((((type x w32 ns haiku pgtk android) (class color))
+ '((((type x w32 ns haiku pgtk android) (class color grayscale))
:box (:line-width 2 :style pressed-button)
:background "lightgrey" :foreground "black")
+ (((type x w32 ns haiku pgtk android))
+ :box (:line-width 2 :style pressed-button)
+ ;; Either light gray or a stipple pattern.
+ :background "gray20" :foreground "black")
(t :inverse-video t))
"Face for pressed custom buttons if `custom-raised-buttons' is non-nil."
- :version "21.1"
+ :version "30.1"
:group 'custom-faces)
(defface custom-button-pressed-unraised
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2c8e7ebe694: Improve custom button faces on monochrome displays,
Po Lu <=