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

Selection background in code competition #95

Closed
alekc opened this issue Aug 11, 2019 · 2 comments · Fixed by #118
Closed

Selection background in code competition #95

alekc opened this issue Aug 11, 2019 · 2 comments · Fixed by #118

Comments

@alekc
Copy link

alekc commented Aug 11, 2019

Possibly related to #88 and #94

0.8.1 version fixed the issue with global background (thx again for that), but there is one small issue: when the code competition is triggered automatically, first selected item misses it's background which will not appear until a key up/down is pressed. If the window is triggered by ctrl-space, then everything works as it should

bug

As with #88 product affected is GoLang (have not tried with another IDE) on windows 10. Nord version is 0.8.1 (installed manually from release page)

svengreb pushed a commit that referenced this issue 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 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
Copy link
Contributor

arcticicestudio commented Feb 11, 2020

Related to #94


Hi @alekc 👋, thanks for your contribution 👍
Sorry for the delay, life keeps me busy.

I've found the root cause and submitted #118 to fix it. It'll be included in the next release version 0.10.0.

@arcticicestudio arcticicestudio added this to the 0.10.0 milestone Feb 11, 2020
arcticicestudio added a commit that referenced this issue 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
svengreb pushed a commit that referenced this issue 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
@arcticicestudio
Copy link
Contributor

arcticicestudio commented Feb 11, 2020

The fix has been merged and released in version 0.10.0 🏷
The new plugin version has been deployed to the JetBrains Plugin Marketplace and should be available within the next 24 hours 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants