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

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

[elpa] externals/modus-operandi-theme a8b6db6 015/112: Use fewer backgro


From: Stefan Monnier
Subject: [elpa] externals/modus-operandi-theme a8b6db6 015/112: Use fewer background colours in DIFF-MODE
Date: Mon, 30 Mar 2020 15:59:28 -0400 (EDT)

branch: externals/modus-operandi-theme
commit a8b6db62b8fffdcfffef571104a7b63a76fb5180
Author: Protesilaos Stavrou <address@hidden>
Commit: Protesilaos Stavrou <address@hidden>

    Use fewer background colours in DIFF-MODE
    
    This is considered “experimental”, meaning that I might never merge it
    into master.  The idea is to put the code out there and elicit as much
    feedback as possible on the pros and cons of such a possible change.
---
 modus-operandi-theme.el | 20 ++++++++++----------
 modus-vivendi-theme.el  | 20 ++++++++++----------
 2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index b6352c0..f00a1f3 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -793,22 +793,22 @@ between foreground and background is >= 7:1)."
    `(diff-hl-insert ((,class (:inherit modus-theme-intense-green))))
    `(diff-hl-reverted-hunk-highlight ((,class (:inherit 
modus-theme-intense-magenta))))
    ;;;; diff-mode
-   `(diff-added ((,class (:inherit modus-theme-refine-green))))
-   `(diff-changed ((,class (:inherit modus-theme-refine-yellow))))
+   `(diff-added ((,class (:foreground ,green))))
+   `(diff-changed ((,class (:foreground ,yellow))))
    `(diff-context ((,class (:foreground ,fg-alt))))
-   `(diff-file-header ((,class (:inherit modus-theme-special-cold :weight 
bold))))
-   `(diff-function ((,class (:inherit modus-theme-subtle-neutral))))
-   `(diff-header ((,class (:foreground ,fg-special-cold))))
+   `(diff-file-header ((,class (:foreground ,blue :weight bold))))
+   `(diff-function ((,class (:foreground ,fg-special-cold))))
+   `(diff-header ((,class (:foreground ,blue-nuanced))))
    `(diff-hunk-header ((,class (:inherit modus-theme-special-warm :weight 
bold))))
-   `(diff-index ((,class (:inherit modus-theme-special-cold :weight bold))))
+   `(diff-index ((,class (:foreground ,blue-alt :weight bold))))
    `(diff-indicator-added ((,class (:inherit diff-added))))
    `(diff-indicator-changed ((,class (:inherit diff-changed))))
    `(diff-indicator-removed ((,class (:inherit diff-removed))))
    `(diff-nonexistent ((,class (:inherit modus-theme-intense-neutral :weight 
bold))))
-   `(diff-refine-added ((,class (:inherit modus-theme-intense-green))))
-   `(diff-refine-changed ((,class (:inherit modus-theme-intense-yellow))))
-   `(diff-refine-removed ((,class (:inherit modus-theme-intense-red))))
-   `(diff-removed ((,class (:inherit modus-theme-refine-red))))
+   `(diff-refine-added ((,class (:inherit modus-theme-refine-green))))
+   `(diff-refine-changed ((,class (:inherit modus-theme-refine-yellow))))
+   `(diff-refine-removed ((,class (:inherit modus-theme-refine-red))))
+   `(diff-removed ((,class (:foreground ,red))))
    ;;;; dim-autoload
    `(dim-autoload-cookie-line ((,class (:foreground ,fg-alt :slant 
,modus-theme-slant))))
    ;;;; dired
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index bc3fc83..88a7168 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -793,22 +793,22 @@ between foreground and background is >= 7:1)."
    `(diff-hl-insert ((,class (:inherit modus-theme-intense-green))))
    `(diff-hl-reverted-hunk-highlight ((,class (:inherit 
modus-theme-intense-magenta))))
    ;;;; diff-mode
-   `(diff-added ((,class (:inherit modus-theme-refine-green))))
-   `(diff-changed ((,class (:inherit modus-theme-refine-yellow))))
+   `(diff-added ((,class (:foreground ,green))))
+   `(diff-changed ((,class (:foreground ,yellow))))
    `(diff-context ((,class (:foreground ,fg-alt))))
-   `(diff-file-header ((,class (:inherit modus-theme-special-cold :weight 
bold))))
-   `(diff-function ((,class (:inherit modus-theme-subtle-neutral))))
-   `(diff-header ((,class (:foreground ,fg-special-cold))))
+   `(diff-file-header ((,class (:foreground ,blue :weight bold))))
+   `(diff-function ((,class (:foreground ,fg-special-cold))))
+   `(diff-header ((,class (:foreground ,blue-nuanced))))
    `(diff-hunk-header ((,class (:inherit modus-theme-special-warm :weight 
bold))))
-   `(diff-index ((,class (:inherit modus-theme-special-cold :weight bold))))
+   `(diff-index ((,class (:foreground ,blue-alt :weight bold))))
    `(diff-indicator-added ((,class (:inherit diff-added))))
    `(diff-indicator-changed ((,class (:inherit diff-changed))))
    `(diff-indicator-removed ((,class (:inherit diff-removed))))
    `(diff-nonexistent ((,class (:inherit modus-theme-intense-neutral :weight 
bold))))
-   `(diff-refine-added ((,class (:inherit modus-theme-intense-green))))
-   `(diff-refine-changed ((,class (:inherit modus-theme-intense-yellow))))
-   `(diff-refine-removed ((,class (:inherit modus-theme-intense-red))))
-   `(diff-removed ((,class (:inherit modus-theme-refine-red))))
+   `(diff-refine-added ((,class (:inherit modus-theme-refine-green))))
+   `(diff-refine-changed ((,class (:inherit modus-theme-refine-yellow))))
+   `(diff-refine-removed ((,class (:inherit modus-theme-refine-red))))
+   `(diff-removed ((,class (:foreground ,red))))
    ;;;; dim-autoload
    `(dim-autoload-cookie-line ((,class (:foreground ,fg-alt :slant 
,modus-theme-slant))))
    ;;;; dired



reply via email to

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