branch: elpa/dracula-theme
commit 7e126aa81a042465a5e39de57b85d8bec6bdf020
Author: Sebastian Reuße <[email protected]>
Commit: Sebastian Reuße <[email protected]>
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