-
Notifications
You must be signed in to change notification settings - Fork 113
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
Weird colors out of spacemacs #163
Comments
Hello @Naheel-Azawy, if you are running emacs in the terminal, yeah the colors are a bit limited and this is how they look 😄 |
@nashamri I tried running it with GUI before posting this and the colors were the same as in the question. After several trails I noticed that the only way to get the right colors is by running Note that I used to use spacemacs. It had a very weird behavior. Running But now with no spacemacs, the only case that the colors are right is when |
Umm, I'm not sure I see anything wrong with the screenshot. The theme has 4 variants:
https://github.com/nashamri/spacemacs-theme/blob/master/spacemacs-common.el#L102 In the screenshot, only the first one (the Regarding the issue that resolves itself when running |
I didn't notice that there was a different variant for terminal... Now it's clear thanks! Anyway, the problem here can be seen is that when started with So, I tried to mess with things and (setq spacemacs-theme-custom-colors
(quote
((bg1 . "#000000")
(bg2 . "#101010")
(bg3 . "#0a0a0a")
(bg4 . "#070707")
(comment-bg . "#000000")
(cblk-bg . "#070707")
(cblk-ln-bg . "#1f1f1f")
(head1-bg . "#000000")))) The frame to the left is a terminal and the other is GUI. They're almost identical! |
What happened when you set
The question is, is there a situation where one have the ability to show GUI colors and rather use the TER variant instead? Sure maybe someone likes the terminal variant more, but honestly, they were meant to be a graceful fallback and not the preferred choice. We can add something like |
The theme gets forced to use gui colors even in the terminal. On my terminal,
Well, what I'm asking for is more like |
Then this is a bug in the |
That would be even better I guess! |
When Emacs is starting up as a daemon from command line Once there's a GUI Emacsclient, Here's a test. You can put the following code into init.el and make sure not to load the Spacemacs theme (if (display-graphic-p)
(message "display-graphic-p => TRUE before loading the theme")
(message "display-graphic-p => FALSE before loading the theme"))
(defun load-spacemacs-theme-debug ()
(message "Loading Spacemacs theme ...")
(load-theme 'spacemacs-light t)
(message "Loading Spacemacs theme ... done!"))
(load-spacemacs-theme-debug)
(if (true-color-p)
(message "true-color-p => TRUE right after loading the theme")
(message "true-color-p => FALSE right after loading the theme")) My workaround is to load the theme not in |
@monkeyjunglejuice That makes sense now. Great explanation, thank you! |
What I did (no spacemacs, just pure emacs):
What I got:
The problem is that the colors are kind of too bright and weird. Any idea?
The text was updated successfully, but these errors were encountered: