-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Terminal Background Color #19
Conversation
Can we get this merged in? This is driving me nuts! |
@bentruyman I'll merge it in tomorrow morning! Spent last week sick so I've had lots of catching up to do this week. Thanks for keeping me on my toes :). |
It's in! Released as |
@film42 I'm sorry to hear that. Hope you're feeling better! One thing I did notice, in the terminal the line highlight color is purple and regions (e.g. visual selections) have the correct yellow background but no foreground. I've made these adjustments in my own emacs configuration: (unless (display-graphic-p)
(progn
(set-face-background 'hl-line "#333333")
(set-face-attribute 'region nil :foreground "#000000")
)) Here's what it looks like currently: EDIT: Looks like you've released while I was making this comment! I can create a new issue to discuss the above changes I'm trying. However, I honestly don't know if this is a correct change or how one would best go about making it. |
@bentruyman, based on the changes you made, it seems like we might want to start discussing a bit of the architecture of this theme and possibly running to different chunks of variable assigning code to make sure the theme looks right in both a terminal, and a graphical version of emacs. |
@benjamreynolds I think I would agree. I'm relatively new to emacs and even more so with theming. But it does seem like having two branches in the theme (one for GUIs and one for terminal) to provide different color options based on your current capabilities until Emacs lands 24-bit/True Color support would be a good idea. |
i was actually just looking at some of the more mature emacs themes and how some of the implementation is done. We may consider working on some bigger refactors of this theme that may solve some of these issues. I'll create and issue to start the discussion. |
@benjamreynolds @bentruyman I would love to see that happen! |
When using Dracula theme in terminal the result is a blue background that does not look good:
By setting the background color to nil when emacs is run in the terminal, the normal color of the terminal background will be used. If the user is using Dracula theme colors in their terminal the proper color will show: