Skip to content

Dark theme: code completion selection does not have enough contrast -> align with other popular dark themes #1688

Open

Description

@thomasritter

Yesterday, I had an interesting call with a user of our source based editor. The user uses Eclipse on a large monitor with the Eclipse dark theme. He showed me that the contrast of the code completion is not high enough for him. Therefore, he always:

a) Opens the code completion
b) Uses tab to highlight the selection. With the highlight the contrast is much better

Here the comparison between:

Selected via tab:
image

Without tab selection:
image

Now, imagine the first selection on a large monitor with a high resolution. The contrast is simply not enough.

Here some examples how other IDEs render the selection without the need to press tab.

Intellij:
Screenshot 2024-02-15 at 09 02 53

VS Code:
Screenshot 2024-02-15 at 09 02 41

Both use a light blue which provides more contrast.

I would propose that the dark theme in Eclipse gets adjusted, too. Having to use tab feels like a hack/workaround. What do you think? @BeckerWdf

Activity

  1. changed the title [-]Light theme: code completion selection does not have enough contrast -> align with other popular dark themes[/-] [+]Dark theme: code completion selection does not have enough contrast -> align with other popular dark themes[/+] on Feb 15, 2024
  2. HeikoKlare commented on Feb 26, 2024

    @HeikoKlare
    Contributor

    I agree that having better highlighting would be great. Note that on Windows the issue is even worse, as highlighting in dark theme is always hardly visible: eclipse-platform/eclipse.platform.swt#811

    Also note that the GTK implementation already does what you expect. Highlighting of the selected element is always done in a well visible way (no matter whether using tab to have focus or not):
    image

    I would really appreciate an improvement here (in particualar if it also applies to Windows), I am only a little concerned that this might be something that the native widgets do not allow to style (at least on Windows).

    Edit: Just saw that it actually seems to be possible to modify: #1690

  3. Christopher-Hermann commented on Apr 23, 2024

    @Christopher-Hermann
    Contributor

    With some tweaking of #1690 I successfully activated the new selection highlight coloring feature for code completion. This would resolve the corresponding issue across all platforms.
    image

    Another fix (at least for MacOS) would be to set the focus to the code completion every time it is opened. This would eliminate the extraneous step of having to manually select the focus with the tab key.

    I hope I found some time the next days/weeks to look into this issue and also finish the work on the mentioned PR #1690.

  4. added a commit that references this issue on Apr 23, 2024
    b1b53ea
  5. Christopher-Hermann commented on Apr 23, 2024

    @Christopher-Hermann
    Contributor

    Fixed with the latest commit in the PR. Code completion proposal selection is now always drawn in the selection color.
    image

  6. added a commit that references this issue on May 6, 2024
    9b5ce3d
  7. added a commit that references this issue on May 13, 2024
    1d11421
  8. added a commit that references this issue on May 22, 2024
    292bd9c
  9. added 4 commits that reference this issue on Jun 5, 2024
    544efd8
    924c81a
    65e9f3e
    4fa81d2
  10. added a commit that references this issue on Jun 7, 2024
    a65fd10
  11. added a commit that references this issue on Jun 7, 2024
    13922b5
  12. 6 remaining items

  13. added 10 commits that reference this issue on Feb 12, 2025
    9972b7b
    e65423e
    773fb5f
    6ffbfb8
    cf938f4
    51a7e93
    a4fdbaf
    7244411
    233e2c8
    c6a0e42
  14. added a commit that references this issue on Feb 24, 2025
    2f7fe7b
  15. added 2 commits that reference this issue on Mar 18, 2025
    33b1cf0
    8bb592a
  16. added 2 commits that reference this issue on Feb 27, 2026
    81ff498
    bc866ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions