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

Tweak warning color for gruvbox_light theme #10455

Closed
Locorock opened this issue Apr 16, 2024 · 3 comments · Fixed by #10506
Closed

Tweak warning color for gruvbox_light theme #10455

Locorock opened this issue Apr 16, 2024 · 3 comments · Fixed by #10506
Labels
C-enhancement Category: Improvements

Comments

@Locorock
Copy link

The current behaviour of the theme grubox_light is for the warnings to be written using the orange1 color, when it should be yellow1 instead, according to the original gruvbox vim theme at https://github.com/morhetz/gruvbox. We can see an example on how it should look here:

image
How it currently looks with orange1 as warning:
grim-2024-apr-16-03_40_22
and how it would look with "warning" = { fg = "yellow1" }:
grim-2024-apr-16-03_43_47
I know it doesn't look much different but the contrast between error and warning benefits greatly from this change

@Locorock Locorock added the C-enhancement Category: Improvements label Apr 16, 2024
@RoloEdits
Copy link
Contributor

Hmm, gruvbox_light inherits from gruvbox for most things, including the colors of the diagnostic highlights.

This is what is currently defined:

"warning" = "orange1"
"error" = "red1"
"info" = "aqua1"
"hint" = "blue1"

This is what I found in in the gruvbox repo:

call s:HL('CocErrorHighlight', s:none, s:none, s:undercurl, s:red)
call s:HL('CocWarningHighlight', s:none, s:none, s:undercurl, s:orange)
call s:HL('CocInfoHighlight', s:none, s:none, s:undercurl, s:yellow)
call s:HL('CocHintHighlight', s:none, s:none, s:undercurl, s:blue)

From this, the outlier seems to be info.

I may be misunderstanding what you mean though.

@Locorock
Copy link
Author

This seems to be the case for CoC, but oddly enough only for CoC.
and not for Syntastic:

call s:HL('SyntasticError', s:none, s:none, s:undercurl, s:red)
call s:HL('SyntasticWarning', s:none, s:none, s:undercurl, s:yellow)

or ALE:

call s:HL('ALEError', s:none, s:none, s:undercurl, s:red)
call s:HL('ALEWarning', s:none, s:none, s:undercurl, s:yellow)
call s:HL('ALEInfo', s:none, s:none, s:undercurl, s:blue)

and the screenshots clearly show yellow as being used for warnings

@RoloEdits
Copy link
Contributor

Huh, weird. Well I guess with the majority using yellow, and stated improved contrast, might as well change them all over to yellow. Let me do a quick check for all the themes and see if the base gruvbox can just be changed over and propagated and have an easy single file change, and I can get up a pr for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants