diff options
| author | Jim Porter | 2023-09-04 21:37:56 -0700 |
|---|---|---|
| committer | Jim Porter | 2023-09-04 21:37:56 -0700 |
| commit | f08684ab39dbdc2e9acc3a8288bce7b5675de407 (patch) | |
| tree | 9603771bbc505a27497876d6dafcd439f827d19e | |
| parent | eb9cfa88525fd748cd069069a80fe1ca6aec0bc3 (diff) | |
| download | emacs-f08684ab39dbdc2e9acc3a8288bce7b5675de407.tar.gz emacs-f08684ab39dbdc2e9acc3a8288bce7b5675de407.zip | |
Inherit 'sieve-mode' faces from 'font-lock'
These Sieve faces were already a close mapping onto the Font Lock
ones, so this should usually look the same to users with the default
theme. However, this makes it easier to theme these faces (just
define the usual 'font-lock-*-face' colors you want) and also fixes a
few edge cases (bug#62370).
* lisp/net/sieve-mode.el (sieve-control-commands)
(sieve-action-commands, sieve-test-commands, sieve-tagged-arguments):
Inherit from 'font-lock' faces.
| -rw-r--r-- | lisp/net/sieve-mode.el | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/lisp/net/sieve-mode.el b/lisp/net/sieve-mode.el index a54c3c6f103..a1ad0bffddc 100644 --- a/lisp/net/sieve-mode.el +++ b/lisp/net/sieve-mode.el | |||
| @@ -55,39 +55,19 @@ | |||
| 55 | ;; Font-lock | 55 | ;; Font-lock |
| 56 | 56 | ||
| 57 | (defface sieve-control-commands | 57 | (defface sieve-control-commands |
| 58 | '((((type tty) (class color)) (:foreground "blue" :weight light)) | 58 | '((t :inherit font-lock-builtin-face)) |
| 59 | (((class grayscale) (background light)) (:foreground "LightGray" :bold t)) | ||
| 60 | (((class grayscale) (background dark)) (:foreground "DimGray" :bold t)) | ||
| 61 | (((class color) (background light)) (:foreground "Orchid")) | ||
| 62 | (((class color) (background dark)) (:foreground "LightSteelBlue")) | ||
| 63 | (t (:bold t))) | ||
| 64 | "Face used for Sieve Control Commands.") | 59 | "Face used for Sieve Control Commands.") |
| 65 | 60 | ||
| 66 | (defface sieve-action-commands | 61 | (defface sieve-action-commands |
| 67 | '((((type tty) (class color)) (:foreground "blue" :weight bold)) | 62 | '((t :inherit font-lock-function-name-face)) |
| 68 | (((class color) (background light)) (:foreground "Blue")) | ||
| 69 | (((class color) (background dark)) (:foreground "LightSkyBlue")) | ||
| 70 | (t (:inverse-video t :bold t))) | ||
| 71 | "Face used for Sieve Action Commands.") | 63 | "Face used for Sieve Action Commands.") |
| 72 | 64 | ||
| 73 | (defface sieve-test-commands | 65 | (defface sieve-test-commands |
| 74 | '((((type tty) (class color)) (:foreground "magenta")) | 66 | '((t :inherit font-lock-constant-face)) |
| 75 | (((class grayscale) (background light)) | ||
| 76 | (:foreground "LightGray" :bold t :underline t)) | ||
| 77 | (((class grayscale) (background dark)) | ||
| 78 | (:foreground "Gray50" :bold t :underline t)) | ||
| 79 | (((class color) (background light)) (:foreground "CadetBlue")) | ||
| 80 | (((class color) (background dark)) (:foreground "Aquamarine")) | ||
| 81 | (t (:bold t :underline t))) | ||
| 82 | "Face used for Sieve Test Commands.") | 67 | "Face used for Sieve Test Commands.") |
| 83 | 68 | ||
| 84 | (defface sieve-tagged-arguments | 69 | (defface sieve-tagged-arguments |
| 85 | '((((type tty) (class color)) (:foreground "cyan" :weight bold)) | 70 | '((t :inherit font-lock-keyword face)) |
| 86 | (((class grayscale) (background light)) (:foreground "LightGray" :bold t)) | ||
| 87 | (((class grayscale) (background dark)) (:foreground "DimGray" :bold t)) | ||
| 88 | (((class color) (background light)) (:foreground "Purple")) | ||
| 89 | (((class color) (background dark)) (:foreground "Cyan")) | ||
| 90 | (t (:bold t))) | ||
| 91 | "Face used for Sieve Tagged Arguments.") | 71 | "Face used for Sieve Tagged Arguments.") |
| 92 | 72 | ||
| 93 | 73 | ||