branch: externals/doric-themes
commit 24a09309aa9d73fe72dd4a7980383d55a5c21772
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Use an intense background for all the trailing whitespace faces
---
 doric-themes.el            | 9 +++++++--
 tests/doric-themes-test.el | 1 +
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/doric-themes.el b/doric-themes.el
index 50d1fd7077..358c251c21 100644
--- a/doric-themes.el
+++ b/doric-themes.el
@@ -1311,6 +1311,11 @@ Run `doric-themes-after-load-theme-hook' after loading a 
theme."
     whitespace-space-after-tab
     whitespace-space-before-tab))
 
+(defconst doric-themes-error-background-faces
+  '(magit-diff-whitespace-warning
+    trailing-whitespace
+    whitespace-trailing))
+
 (defconst doric-themes-warning-foreground-only-faces
   '(TeX-error-description-warning
     elisp-non-local-exit
@@ -1509,6 +1514,7 @@ default to a generic text that mentions the 
BACKGROUND-MODE."
               ,@(doric-themes-prepare-faces doric-themes-error-underline-faces 
:underline '(list :style 'wave :color fg-red))
               ,@(doric-themes-prepare-faces 
doric-themes-warning-underline-faces :underline '(list :style 'wave :color 
fg-yellow))
               ,@(doric-themes-prepare-faces 
doric-themes-success-underline-faces :underline '(list :style 'wave :color 
fg-cyan))
+              ,@(doric-themes-prepare-faces 
doric-themes-error-background-faces :background '(doric-themes-adjust-value 
bg-red 30))
 
               ,@(doric-themes-prepare-faces doric-themes-bold-faces :inherit 
''bold :foreground 'fg-shadow-intense)
               ,@(doric-themes-prepare-faces doric-themes-bold-intense-faces 
:inherit ''bold :foreground 'fg-main)
@@ -1762,8 +1768,7 @@ default to a generic text that mentions the 
BACKGROUND-MODE."
               `(whitespace-missing-newline-at-eof ((t :foreground 
,bg-shadow-intense)))
               `(whitespace-newline ((t :foreground ,bg-shadow-intense)))
               `(whitespace-space ((t :foreground ,bg-shadow-intense)))
-              `(whitespace-tab ((t :foreground ,bg-shadow-intense)))
-              `(whitespace-trailing ((t :background ,bg-shadow-intense)))))
+              `(whitespace-tab ((t :foreground ,bg-shadow-intense)))))
            (custom-theme-set-variables
             ',name
             '(diff-font-lock-syntax nil)
diff --git a/tests/doric-themes-test.el b/tests/doric-themes-test.el
index 128d6a3c6f..a8e99c9adf 100644
--- a/tests/doric-themes-test.el
+++ b/tests/doric-themes-test.el
@@ -61,6 +61,7 @@
     doric-themes-diff-removed-highlight-faces
     doric-themes-diff-removed-refine-faces
     doric-themes-error-foreground-only-faces
+    doric-themes-error-background-faces
     doric-themes-warning-foreground-only-faces
     doric-themes-success-foreground-only-faces
     doric-themes-error-underline-faces

Reply via email to