-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Do not use light version of colors by default #21433
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I was talking about in the issue was only related to the circles in the julia logo. For the normal text we have to think of something different than this because the standard red is too dark on most terminals.
We should figure out why the light colors don't work and maybe we can detect those scenarios and only swap in those cases.
Is using bold colors sufficient to make them readable? @musm can we see a screenshot after this change? |
No, because they used to be bold and bold + standard color = light color in most terminals. |
Changing away from bold seems to be a conscious decision taken in #11250. Can't we use 256-color when it's available? |
not sure what "most" means, but it's clearly not the case here and I suspect once 0.6 is released I won't be the only one posting an issue regarding this. |
We could, but AFAIK (I am not an expert on this) it is quite hard to get the terminal to tell you exactly what it supports. |
Sorry I was mistaken on what it was on 0.5, but clearly that was much better despite the contentious decision regarding the bold choice (which I didn't have a problem, since it rendered the colors properly) than having them show up as in the above screenshots. |
We've had this for months and this is the first one to report an issue about it. Is something special with your setup? |
I'm missing something here --- don't we still use bold for the prompt and error messages? In which case it seems asking for |
Ah, it seems the |
I guess the only other option is to bold the entire message, instead of just the prefix. |
I really don't think these should be Light_red is pink on my terminal; The julia 0.5 colors worked fine (not sure if I observe bold in the terminal). My argument is that |
You can get back the old color with i.e.
|
Are you for example using the solarized theme? |
Can you do |
Worth pointing out that everything in this PR except the error color change should be uncontroversial, since it only involves bold text. |
Yeah, I agree. It's unfortunate but |
The second theme in that list should be the default --- is it not? |
it is the default theme of the terminal @KristofferC In your case I think it would be more desirable to tune the color of the red in your terminal, than to keep the current configuration, because it is very inconsistent as to what constitutes as 'light' in different terminal setups. I feel like the default, should be something that works decently for most people, even if it is not ideal for some. |
I tried myself, and there was no problems with the default colorscheme on Bash subsystem for windows:
Doing your change suggested here would make it worse for 99.9% of people (everyone except you that have tried 0.6 so far?).
Not really. It is inconsistent in that some (non default) colorschemes happen to set e.g. |
The problem is that this is a regression from 0.5. People will not expect the prompt to become invisible upon upgrading to 0.6. I agree that color schemes being nonstandard is the fault of the color scheme; but those color schemes are popular and we should pick colors that aren't horrible on any machine or color scheme. |
They won't, unless they actively made the choice to define |
The prompt should be fine since it's still bold. I believe we can safely remove use of |
Yes |
So is this then ok? |
No, the |
Don't' we want to print the whole error msg in bold, since we have agreed that using |
Who have agreed with that? As a reference, we also had problems when writing stuff in bold: #8096. It is impossible to support broken setups because they are broken in different ways. |
I was referring to :
and earlier
|
Where we currently use bold and light we might as well use just bold. That leaves light_red for errors, which we do not have an acceptable replacement for. The only thing I think we could do is put the whole error (prefix plus message) in bold, but for consistency that would also have to apply to warn and info, which would require a wider debate. |
I have made the requested change. I still maintain that the usage of |
Ref #11250 (comment)
It looks like all the underscore light_ colors ended up breaking the julia repl color setup for me on 0.6 on, e.g., the bash subsystem for windows.