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

Theme monokai_pro_spectrum uses a color magenta which is not defined as hex color in the [palette] section, causing hard to read low contrast #5249

Closed
LeoniePhiline opened this issue Dec 21, 2022 · 1 comment · Fixed by #5602
Labels
A-theme Area: Theme and appearence related C-bug Category: This is a bug

Comments

@LeoniePhiline
Copy link
Contributor

LeoniePhiline commented Dec 21, 2022

Summary

monokai_pro_spectrum uses a color magenta which is not defined as hex color in the [palette] section.

Therefore, magenta's actual color depends on the terminal theme, causing terrible contrast for yellow on magenta errors.

image

Arguably, yellow on magenta has low contrast by definition (even if it was hex-coded) and thus is bound to be more or less hard to read.

The root cause is that unlike others, this theme uses red as color for builtin types, keywords and operators. Therefore, red is not a good error color. (See #2433)

Errors should either be marked by squiggly underlines (see #5236) or a new error color needs to be introduced, which might not be in line with the original vscode theme.

History:

Reproduction Steps

  1. Cause an error in an LSP-enabled language
  2. Hover the error location
  3. See the bad contrast in the top right corner. (See screenshot above.)
  4. For stronger effect, use a custom terminal emulator theme, e.g. Dracula, which makes magenta very vivid.

Expected:

Well readable error with reasonable highlight.

Helix log

Nothing special in Helix log.

Platform

openSUSE Tumbleweed - Linux

Terminal Emulator

Konsole

Helix Version

helix 22.12

@LeoniePhiline LeoniePhiline added the C-bug Category: This is a bug label Dec 21, 2022
@LeoniePhiline LeoniePhiline changed the title Theme monokai_pro_spectrum uses a magenta which is not defined as hex color in the [palette] section, causing hard to read low contrast Theme monokai_pro_spectrum uses a color magenta which is not defined as hex color in the [palette] section, causing hard to read low contrast Dec 21, 2022
@the-mikedavis the-mikedavis added the A-theme Area: Theme and appearence related label Dec 21, 2022
@LeoniePhiline
Copy link
Contributor Author

LeoniePhiline commented Dec 21, 2022

This comment has been resolved by merging #5250.

The theme also uses other non-hex-coded colors, such as "cyan":
https://github.com/helix-editor/helix/blob/master/runtime/themes/monokai_pro_spectrum.toml#L56

"cyan" should be #5ad4e6 according to the screenshot at https://www.vscolors.com/themes/f5d7ffda-c1d6-4070-ba80-803c705a1ee6-3ed72ace, which is in fact the palette color "blue".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-theme Area: Theme and appearence related C-bug Category: This is a bug
Projects
None yet
2 participants