Skip to content
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

Merged
merged 1 commit into from
Mar 1, 2017
Merged

Conversation

apierz
Copy link
Contributor

@apierz apierz commented Feb 24, 2017

When using Dracula theme in terminal the result is a blue background that does not look good:
c4aa5592-bb14-11e6-8133-04c35697a6c3

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:
screen shot 2017-02-23 at 3 50 50 pm

@bentruyman
Copy link

Can we get this merged in? This is driving me nuts!

@film42
Copy link
Contributor

film42 commented Mar 1, 2017

@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 :).

@film42 film42 merged commit 9f03ced into dracula:master Mar 1, 2017
@film42
Copy link
Contributor

film42 commented Mar 1, 2017

It's in! Released as 1.3.0! 🎉 🌮 🥇

@bentruyman
Copy link

@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:
unfixed-highlight
unfixed-region

Here's with the adjustments:
fixed-highlight
fixed-region

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.

@benreyn
Copy link
Contributor

benreyn commented Mar 1, 2017

@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.

@bentruyman
Copy link

bentruyman commented Mar 1, 2017

@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.

@benreyn
Copy link
Contributor

benreyn commented Mar 1, 2017

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.

@film42
Copy link
Contributor

film42 commented Mar 1, 2017

@benjamreynolds @bentruyman I would love to see that happen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants