branch: elpa/dracula-theme
commit 0c7dd51e5174de0b46aac6a7faac5fcf3c51574f
Merge: 5db3f96 18816b9
Author: Garrett T <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #24 from eigengrau/master
Fix non-graphical color switch
---
dracula-theme.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dracula-theme.el b/dracula-theme.el
index 66f3c5f..048e10a 100644
--- a/dracula-theme.el
+++ b/dracula-theme.el
@@ -18,13 +18,12 @@
(deftheme dracula)
-(if (display-graphic-p) (setq bg1 "#282a36") (setq bg1 "#000000"))
-
(let ((class '((class color) (min-colors 89)))
(fg1 "#f8f8f2")
(fg2 "#e2e2dc")
(fg3 "#ccccc7")
(fg4 "#b6b6b2")
+ (bg1 "#282a36")
(bg2 "#373844")
(bg3 "#464752")
(bg4 "#565761")
@@ -56,7 +55,8 @@
'dracula
;; default
`(cursor ((,class (:background ,fg3))))
- `(default ((,class (:background ,bg1 :foreground ,fg1))))
+ `(default ((((type nil)) (:background "#000000" :foreground ,fg1))
+ (,class (:background ,bg1 :foreground ,fg1))))
`(default-italic ((,class (:italic t))))
`(ffap ((,class (:foreground ,fg4))))
`(fringe ((,class (:background ,bg1 :foreground ,fg4))))