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

Fix invisible background color of inactive completion popup item #118

Conversation

arcticicestudio
Copy link
Contributor

Fixes #95
Related to #94


Before this PR, the background color of the marked entry in the completion popup when triggered while typing (enabled “Show suggestions as you type“ option in preferences) was the same like the background of the popup itself. As a result, the user did not know which entry was selected to complete the current line.
The problem only occurred when the completion popup was triggered while typing but not when being explicitly invoked using the configured keymapping (Ctrl / + Space by default).
This was because the matching entry in the list, when invoked while typing, is inactive, but the color for inactive entries was the same like the background color of the popup itself.

This problem is now fixed by changing the color of the corresponding UI theme key ui.CompletionPopup.selectionInactiveBackground from nord1 to nord3.

Before

After

Before this commit, the background color of the marked entry in the
completion popup when triggered while typing
(enabled "Show suggestions as you type" option in preferences) [1]
was the same like the background of the popup itself. As a result,
the user did not know which entry was selected to complete the current
line.
The problem only occured when the completion popup was triggered while
typing but not when being explicitly invoked using the configured
keymapping [2] (`Ctrl` / `⌃` + `Space` by default).
This was because when the popup is invoked while typing, the matching
entry in the list is "inactive", but the color for inative entries was
the same like the background color of the popup itself.

This problem is now fixed by changing the color of the co#rresponding UI
theme key `ui.CompletionPopup.selectionInactiveBackground` from `nord1`
to `nord3`.

[1]: https://www.jetbrains.com/help/idea/auto-completing-code.html#configure-code-completion
[2]: https://www.jetbrains.com/help/idea/auto-completing-code.html#invoke-basic-completion

Related to GH-94
GH-95
@arcticicestudio arcticicestudio merged commit 23cea02 into develop Feb 11, 2020
@arcticicestudio arcticicestudio deleted the bugfix/gh-95-inactive-background-color-completion-popup branch February 11, 2020 12:44
@arcticicestudio arcticicestudio removed their assignment Feb 11, 2020
svengreb pushed a commit that referenced this pull request Feb 11, 2020
Before this commit, the background color of the marked entry in the
completion popup when triggered while typing
(enabled "Show suggestions as you type" option in preferences) [1]
was the same like the background of the popup itself. As a result,
the user did not know which entry was selected to complete the current
line.
The problem only occurred when the completion popup was triggered while
typing but not when being explicitly invoked using the configured
keymapping [2] (`Ctrl` / `⌃` + `Space` by default).
This was because when the popup is invoked while typing, the matching
entry in the list is "inactive", but the color for inactive entries was
the same like the background color of the popup itself.

This problem is now fixed by changing the color of the corresponding UI
theme key `ui.CompletionPopup.selectionInactiveBackground` from `nord1`
to `nord3`.

[1]: https://www.jetbrains.com/help/idea/auto-completing-code.html#configure-code-completion
[2]: https://www.jetbrains.com/help/idea/auto-completing-code.html#invoke-basic-completion

Related to GH-94
Fixes GH-95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection background in code competition Code completion selection background is inconsistent
2 participants