-
Notifications
You must be signed in to change notification settings - Fork 196
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
Stronger wordHighlightBorder #40
Conversation
themes/dark.json
Outdated
"editor.selectionHighlightBackground": "#17E5E600", | ||
"editor.selectionHighlightBorder": "#17E5E644", | ||
"editor.wordHighlightBackground": "#17E5E633", | ||
"editor.wordHighlightStrongBackground": "#17E5E622", |
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.
I intentionally put less focus on the strong
word highlight than on the regular one for those reasons:
- It's good to distinguish between the word where my cursor is and all the other occurrences to make it easier to navigate through the file.
- However, we need to distinguish between a highlight and a selection, so the contrast between those needs to be sufficient as well. Making the
strong
highlight more transparent helps a lot here. - When we're searching for occurrences, we're not so much interested in the
strong
one.
Problems this could make:
- Distracts from the place where we placed our cursor. I hope that won't be too much of an issue as the currently selected line gets its own highlight.
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.
I think this all makes sense, but I'm still somewhat on the fence. 😇
Distracts from the place where we placed our cursor. I hope that won't be too much of an issue as the currently selected line gets its own highlight.
Yeah, the idea of using only a border for wordHighlight
is to avoid clashing with the selection. It should make sure that the selection is still easily visible without overlapping the wordHighlight
.
Another reason is that wordHighlight
is active by just moving the cursor around. In contrast the selectionHighlight
is shown only when making a selection
. So using a background for both makes that relationship more clear.
I intentionally put less focus on the
strong
word highlight than on the regular one for those reasons
👍 Here another PR that reverts the border/background switch, but makes the "weak" border stronger: https://github.com/dcastil/github-vscode-theme/pull/1
Stronger wordHighlightBorder
That makes sense. Let's do it and I can report after a few days if something doesn't feel right. 😊 |
Closes #23, specifically addresses #23 (comment).