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

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

[nongnu] elpa/git-commit a990a44: magit-branch-{remote-head, current}: T


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit a990a44: magit-branch-{remote-head, current}: Theme for terminals as well
Date: Sun, 8 Aug 2021 11:57:23 -0400 (EDT)

branch: elpa/git-commit
commit a990a44c96dc069bb52800b923c466acc6d5f369
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit-branch-{remote-head,current}: Theme for terminals as well
    
    Closes #4206.
---
 Documentation/RelNotes/3.3.0.org | 6 ++++++
 lisp/magit.el                    | 8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/Documentation/RelNotes/3.3.0.org b/Documentation/RelNotes/3.3.0.org
index 0a49105..55efbcc 100644
--- a/Documentation/RelNotes/3.3.0.org
+++ b/Documentation/RelNotes/3.3.0.org
@@ -6,3 +6,9 @@
   single file that isn't being tracked anymore.  #4381
 
 ** Fixes since v3.2.0
+
+- Make ~magit-branch-remote-head~ and ~magit-branch-current~ fall back
+  to ~:inverse-video~ when the ~:box~ attribute isn't support, i.e. in
+  a terminal.  If this change does not have any effect for you then
+  your theme probably changes these faces and should stop doing so.
+  #4206
diff --git a/lisp/magit.el b/lisp/magit.el
index 70b95ea..b8f7df4 100644
--- a/lisp/magit.el
+++ b/lisp/magit.el
@@ -108,8 +108,8 @@ own faces for the `header-line', or for parts of the
   :group 'magit-faces)
 
 (defface magit-branch-remote-head
-  '((((class color) (background light)) :inherit magit-branch-remote :box t)
-    (((class color) (background  dark)) :inherit magit-branch-remote :box t))
+  '((((supports (:box t))) :inherit magit-branch-remote :box t)
+    (t                     :inherit magit-branch-remote :inverse-video t))
   "Face for current branch."
   :group 'magit-faces)
 
@@ -120,8 +120,8 @@ own faces for the `header-line', or for parts of the
   :group 'magit-faces)
 
 (defface magit-branch-current
-  '((((class color) (background light)) :inherit magit-branch-local :box t)
-    (((class color) (background  dark)) :inherit magit-branch-local :box t))
+  '((((supports (:box t))) :inherit magit-branch-local :box t)
+    (t                     :inherit magit-branch-local :inverse-video t))
   "Face for current branch."
   :group 'magit-faces)
 



reply via email to

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