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.
This commit is contained in:
parent
eb9cfa8852
commit
f08684ab39
1 changed files with 4 additions and 24 deletions
|
@ -55,39 +55,19 @@
|
|||
;; Font-lock
|
||||
|
||||
(defface sieve-control-commands
|
||||
'((((type tty) (class color)) (:foreground "blue" :weight light))
|
||||
(((class grayscale) (background light)) (:foreground "LightGray" :bold t))
|
||||
(((class grayscale) (background dark)) (:foreground "DimGray" :bold t))
|
||||
(((class color) (background light)) (:foreground "Orchid"))
|
||||
(((class color) (background dark)) (:foreground "LightSteelBlue"))
|
||||
(t (:bold t)))
|
||||
'((t :inherit font-lock-builtin-face))
|
||||
"Face used for Sieve Control Commands.")
|
||||
|
||||
(defface sieve-action-commands
|
||||
'((((type tty) (class color)) (:foreground "blue" :weight bold))
|
||||
(((class color) (background light)) (:foreground "Blue"))
|
||||
(((class color) (background dark)) (:foreground "LightSkyBlue"))
|
||||
(t (:inverse-video t :bold t)))
|
||||
'((t :inherit font-lock-function-name-face))
|
||||
"Face used for Sieve Action Commands.")
|
||||
|
||||
(defface sieve-test-commands
|
||||
'((((type tty) (class color)) (:foreground "magenta"))
|
||||
(((class grayscale) (background light))
|
||||
(:foreground "LightGray" :bold t :underline t))
|
||||
(((class grayscale) (background dark))
|
||||
(:foreground "Gray50" :bold t :underline t))
|
||||
(((class color) (background light)) (:foreground "CadetBlue"))
|
||||
(((class color) (background dark)) (:foreground "Aquamarine"))
|
||||
(t (:bold t :underline t)))
|
||||
'((t :inherit font-lock-constant-face))
|
||||
"Face used for Sieve Test Commands.")
|
||||
|
||||
(defface sieve-tagged-arguments
|
||||
'((((type tty) (class color)) (:foreground "cyan" :weight bold))
|
||||
(((class grayscale) (background light)) (:foreground "LightGray" :bold t))
|
||||
(((class grayscale) (background dark)) (:foreground "DimGray" :bold t))
|
||||
(((class color) (background light)) (:foreground "Purple"))
|
||||
(((class color) (background dark)) (:foreground "Cyan"))
|
||||
(t (:bold t)))
|
||||
'((t :inherit font-lock-keyword face))
|
||||
"Face used for Sieve Tagged Arguments.")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue