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

Improve onedarker theme contrast cursorline/selection #12833

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

iliekturtles
Copy link
Contributor

Previously ui.cursorline.primary
(light-black)/ui.selection.primary (gray) and ui.selection (light-gray)/comment (light-gray) had little or no contrast. ui.cursorline.primary is changed to a new darker color, dark-black and ui.selection is set to use reversed.

After playing with the example solution in #12579 I decided to go with one that keeps the gray hue for selections and only requires adding one new color to the palette. The change also supports 256-color mode.

24-bit color:
image

256-color:
image

@the-mikedavis
Copy link
Member

\cc @nuid64 what do you think?

@the-mikedavis the-mikedavis changed the title Improve onedarker theme contrast cursorline/selection (#12579) Improve onedarker theme contrast cursorline/selection Feb 12, 2025
@nuid64
Copy link
Contributor

nuid64 commented Feb 13, 2025

Nice improvement. I think also changing ui.selection.bg to black is a sensible thing to do taking in account that it is now reversed.
image

…itor#12579)

Previously `ui.cursorline.primary`
(`light-black`)/`ui.selection.primary` (`gray`) and `ui.selection`
(`light-gray`)/`comment` (`light-gray`) had little or no contrast.
`ui.cursorline.primary` is changed to a new darker color, `dark-black`
and `ui.selection` is set to use `reversed`.
@iliekturtles
Copy link
Contributor Author

Nice improvement. I think also changing ui.selection.bg to black is a sensible thing to do taking in account that it is now reversed.

Done!

@qoqosz
Copy link

qoqosz commented Feb 14, 2025

May I suggest you also include an entry ui.text.directory? (see #12205, #12295 ) e.g. "ui.text.directory" = "blue"?

Support for the key was recently added in helix-editor#12205 and helix-editor#12295. Not all
themes were updated.
@iliekturtles
Copy link
Contributor Author

May I suggest you also include an entry ui.text.directory? (see #12205, #12295 ) e.g. "ui.text.directory" = "blue"?

Done!

image

@the-mikedavis the-mikedavis merged commit 1c47aec into helix-editor:master Feb 17, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

onedarker theme doesn't have enough contrast between ui.cursorline/ui.selection/comment
4 participants