emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/modus-themes fe028304d4 2/4: Make whitespace-mode much


From: ELPA Syncer
Subject: [elpa] externals/modus-themes fe028304d4 2/4: Make whitespace-mode much more subtle; add semantic colour mappings
Date: Wed, 17 May 2023 00:58:39 -0400 (EDT)

branch: externals/modus-themes
commit fe028304d4374fa8c54685fbaeb325168c63a25d
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make whitespace-mode much more subtle; add semantic colour mappings
    
    The previous style involved the use of a dim grey background.  While
    this is good to spot invisible characters quickly, it is bad for users
    who want to run 'whitespace-mode' at all times (e.g. for Python which
    is space-sensitive).
    
    We thus remove the backgrounds by default but provide the option to
    reinstate them via palette overrides (as documented at length in the
    manual).  To this end, we have two new semantic colour mappings for
    ordinary negative space and its invisible characters.
    
    Thanks to Christian Tietze and Oliver Epper for their feedback in
    issue 80 on the GitHub mirror: 
<https://github.com/protesilaos/modus-themes/issues/80>.
---
 modus-operandi-deuteranopia-theme.el |  5 +++++
 modus-operandi-theme.el              |  5 +++++
 modus-operandi-tinted-theme.el       |  5 +++++
 modus-themes.el                      | 12 ++++++------
 modus-vivendi-deuteranopia-theme.el  |  5 +++++
 modus-vivendi-theme.el               |  5 +++++
 modus-vivendi-tinted-theme.el        |  5 +++++
 7 files changed, 36 insertions(+), 6 deletions(-)

diff --git a/modus-operandi-deuteranopia-theme.el 
b/modus-operandi-deuteranopia-theme.el
index 45eee23bd6..7da9145f9f 100644
--- a/modus-operandi-deuteranopia-theme.el
+++ b/modus-operandi-deuteranopia-theme.el
@@ -345,6 +345,11 @@ standard).")
       (rainbow-7 yellow-faint)
       (rainbow-8 cyan)
 
+;;;; Space mappings
+
+      (bg-space unspecified)
+      (fg-space border)
+
 ;;;; Heading mappings
 
       (fg-heading-0 cyan-cooler)
diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index 09723cd436..4b27163d13 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -343,6 +343,11 @@ which corresponds to a minimum contrast in relative 
luminance of
       (rainbow-7 blue-warmer)
       (rainbow-8 magenta-warmer)
 
+;;;; Space mappings
+
+      (bg-space unspecified)
+      (fg-space border)
+
 ;;;; Heading mappings
 
       (fg-heading-0 cyan-cooler)
diff --git a/modus-operandi-tinted-theme.el b/modus-operandi-tinted-theme.el
index e3f69271a4..f03ac39ff5 100644
--- a/modus-operandi-tinted-theme.el
+++ b/modus-operandi-tinted-theme.el
@@ -342,6 +342,11 @@ which corresponds to a minimum contrast in relative 
luminance of
       (rainbow-7 blue-warmer)
       (rainbow-8 magenta-warmer)
 
+;;;; Space mappings
+
+      (bg-space unspecified)
+      (fg-space border)
+
 ;;;; Heading mappings
 
       (fg-heading-0 cyan-cooler)
diff --git a/modus-themes.el b/modus-themes.el
index 0891fe563f..f675fc6c92 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -3935,14 +3935,14 @@ FG and BG are the main colors."
 ;;;;; whitespace-mode
     `(whitespace-big-indent ((,c :inherit modus-themes-subtle-red)))
     `(whitespace-empty ((,c :inherit modus-themes-intense-magenta)))
-    `(whitespace-hspace ((,c :background ,bg-dim :foreground ,fg-dim)))
-    `(whitespace-indentation ((,c :background ,bg-dim :foreground ,fg-dim)))
-    `(whitespace-line ((,c :inherit modus-themes-subtle-yellow)))
-    `(whitespace-newline ((,c :background ,bg-dim :foreground ,fg-dim)))
-    `(whitespace-space ((,c :background ,bg-dim :foreground ,fg-dim)))
+    `(whitespace-hspace ((,c :background ,bg-space :foreground ,fg-space)))
+    `(whitespace-indentation ((,c :background ,bg-space :foreground 
,fg-space)))
+    `(whitespace-line ((,c :background ,bg-space :foreground ,warning)))
+    `(whitespace-newline ((,c :background ,bg-space :foreground ,fg-space)))
+    `(whitespace-space ((,c :background ,bg-space :foreground ,fg-space)))
     `(whitespace-space-after-tab ((,c :inherit modus-themes-subtle-magenta)))
     `(whitespace-space-before-tab ((,c :inherit modus-themes-subtle-cyan)))
-    `(whitespace-tab ((,c :background ,bg-dim :foreground ,fg-dim)))
+    `(whitespace-tab ((,c :background ,bg-space :foreground ,fg-space)))
     `(whitespace-trailing ((,c :inherit modus-themes-intense-red)))
 ;;;;; window-divider-mode
     `(window-divider ((,c :foreground ,border)))
diff --git a/modus-vivendi-deuteranopia-theme.el 
b/modus-vivendi-deuteranopia-theme.el
index a9aec49646..7f3db06993 100644
--- a/modus-vivendi-deuteranopia-theme.el
+++ b/modus-vivendi-deuteranopia-theme.el
@@ -344,6 +344,11 @@ standard).")
       (rainbow-7 blue-faint)
       (rainbow-8 magenta-faint)
 
+;;;; Space mappings
+
+      (bg-space unspecified)
+      (fg-space border)
+
 ;;;; Heading mappings
 
       (fg-heading-0 cyan-cooler)
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index b18cb69955..655f267b92 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -342,6 +342,11 @@ which corresponds to a minimum contrast in relative 
luminance of
       (rainbow-7 blue-warmer)
       (rainbow-8 magenta-warmer)
 
+;;;; Space mappings
+
+      (bg-space unspecified)
+      (fg-space border)
+
 ;;;; Heading mappings
 
       (fg-heading-0 cyan-cooler)
diff --git a/modus-vivendi-tinted-theme.el b/modus-vivendi-tinted-theme.el
index a44c140196..1f8a276cdb 100644
--- a/modus-vivendi-tinted-theme.el
+++ b/modus-vivendi-tinted-theme.el
@@ -342,6 +342,11 @@ which corresponds to a minimum contrast in relative 
luminance of
       (rainbow-7 blue-warmer)
       (rainbow-8 magenta-warmer)
 
+;;;; Space mappings
+
+      (bg-space unspecified)
+      (fg-space border)
+
 ;;;; Heading mappings
 
       (fg-heading-0 cyan-cooler)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]