-
Notifications
You must be signed in to change notification settings - Fork 208
Draw completion proposals always as focused #2793
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
base: master
Are you sure you want to change the base?
Draw completion proposals always as focused #2793
Conversation
@iloveeclipse I had fixed this issue in the past, but we had to revert the changes since you found some issues on Linux: #1690 On Mac and Windows it looks good. |
9972b7b
to
e65423e
Compare
I will test later, but in general I would assume this is not for this release, M3 is planned for tomorrow and the change affects everyone using content assist. |
...rg.eclipse.jface.text/src/org/eclipse/jface/contentassist/CompletionProposalDrawSupport.java
Outdated
Show resolved
Hide resolved
...rg.eclipse.jface.text/src/org/eclipse/jface/contentassist/CompletionProposalDrawSupport.java
Outdated
Show resolved
Hide resolved
I see errors on every popup close:
|
773fb5f
to
6ffbfb8
Compare
Yes I need to check this, there are also some "SWT Resource was not properly disposed" errors |
These are most likely follow ups of original error |
51a7e93
to
a4fdbaf
Compare
Should be fixed. Is the coloring working on Linux? |
233e2c8
to
c6a0e42
Compare
@iloveeclipse can you confirm that the coloring is working on linux like expected? MacOS and Windows is working. Then I would merge this change. |
You can't merge the change, we are in the RC phase. |
c6a0e42
to
2f7fe7b
Compare
2f7fe7b
to
33b1cf0
Compare
If there are no objections I would merge the PR |
Personally I find the focus color to distracting - it grabs too much of my attention while typing. |
Yes, good point. I will check if we can just change the non focus color to something more visible. The problem is, as far as I understood, that on Linux the code completion is always rendered with focus back ground color. So when changing the color, it will most probably change the behavior on Linux. |
When opening the completion proposals via the keyboard, the focus will stay in the editor to be able to accept further user input. This is causing the completion proposal to be drawn in non focus colors. This colors can lead to UX problems, especially in dark theme. With this fix, the completion proposals are always drawn in focused colors. Fixes eclipse-platform#1688
I tried using SWT.COLOR_TITLE_INACTIVE_BACKGROUND if the control is not focused, but this is even more worse (at least on MacOS). So I see two ways to solve the issue:
|
33b1cf0
to
8bb592a
Compare
Problem description
When opening the completion proposals via the keyboard, the focus will stay in the editor to be able to accept further user input. This is causing the completion proposal to be drawn in non focus colors. This colors can lead to UX problems, especially in dark theme. With this fix, the completion proposals are always drawn in focused colors.
Before the fix in dark theme, it was hard to sport the selected proposal:

With the fix, the proposal is colored in the focus color:

How to retest
Fixes #1688