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

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

[nongnu] elpa/dracula-theme 7e126aa 063/187: Use 256-color remapping onl


From: ELPA Syncer
Subject: [nongnu] elpa/dracula-theme 7e126aa 063/187: Use 256-color remapping only when needed
Date: Thu, 21 Oct 2021 18:04:56 -0400 (EDT)

branch: elpa/dracula-theme
commit 7e126aa81a042465a5e39de57b85d8bec6bdf020
Author: Sebastian Reuße <seb@wirrsal.net>
Commit: Sebastian Reuße <seb@wirrsal.net>

    Use 256-color remapping only when needed
    
    Emacs 26.1 now supports 24-bit color terminals, so we want to base the 
fallback
    test on ‘min-colors’, not ‘type’.
---
 dracula-theme.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dracula-theme.el b/dracula-theme.el
index 2e2a99a..c5eb758 100644
--- a/dracula-theme.el
+++ b/dracula-theme.el
@@ -428,10 +428,10 @@
                                                    (eval `(backquote ,spec)))))
              (cl-loop for (face . spec) in faces
                       collect `(,face
-                                ((((type tty))
-                                  ,(expand-for-tty spec))
-                                 (((type graphic))
-                                  ,(expand-for-graphic spec)))))))))
+                                ((((min-colors 16777216))
+                                  ,(expand-for-graphic spec))
+                                 (t
+                                  ,(expand-for-tty spec)))))))))
 
 ;;;###autoload
 (when load-file-name



reply via email to

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