Skip to content

The gap between the line numbers and code does not adapt to the configured source editor background colour #3964

@datho7561

Description

@datho7561

Steps to reproduce

From a fresh installation and clean workspace:

  • Enable line numbers in the text editor settings
  • Change the background colour for the text editor and the background colour for the text editor line numbers to a dark colour, and the corresponding foreground/text colours to a light colours
  • There is a vertical bar between the line numbers and the text that's bright white
Image

I tried

  • Searching for settings to remove this line
  • Searching for settings to change the colour of the line

I expected: Some method to make it go away

But got: No obvious configuration option to make it go away

Here is some relevant log output

N/A

Tested under this environment:

  • OS & version: Fedora Linux 43
  • Eclipse IDE/Platform version (as shown in Help > About): 4.40

Example workspace settings additions to change the colours (these are slightly different settings than in the attached image):

.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs

AbstractTextEditor.Color.Background=40,44,52
AbstractTextEditor.Color.Background.SystemDefault=false
AbstractTextEditor.Color.Foreground=171,178,191
AbstractTextEditor.Color.Foreground.SystemDefault=false
AbstractTextEditor.Color.SelectionBackground=62,68,81
AbstractTextEditor.Color.SelectionBackground.SystemDefault=false
AbstractTextEditor.Color.SelectionForeground=255,255,255
AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
currentLineColor=44,49,60
lineNumberColor=73,81,98
printMarginColor=40,44,52

.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs

java_bracket=171,178,191
java_operator=171,178,191
java_default=171,178,191
java_comment_task_tag=86,182,194
java_doc_default=92,99,112
java_doc_keyword=86,182,194
java_doc_link=86,182,194
java_doc_tag=86,182,194
java_keyword=224,108,117
java_keyword_return=224,108,117
java_multi_line_comment=92,99,112
java_single_line_comment=92,99,112
java_string=229,192,123
semanticHighlighting.annotation.color=92,99,112
semanticHighlighting.field.color=86,182,194
semanticHighlighting.localVariable.color=209,154,102
semanticHighlighting.restrictedKeywords.color=224,108,117
semanticHighlighting.staticField.color=86,182,194
semanticHighlighting.staticFinalField.color=86,182,194
semanticHighlighting.method.color=152,195,121
semanticHighlighting.deprecatedMember.color=171,178,191
semanticHighlighting.method.enabled=true
semanticHighlighting.methodDeclarationName.color=152,195,121
semanticHighlighting.staticMethodInvocation.color=152,195,121
semanticHighlighting.number.color=198,120,221
semanticHighlighting.number.enabled=true
sourceHoverBackgroundColor=40,44,52

Here is where I expect the culprit is:

if I modify this gap to be 0, then the bright line goes away.

Community

  • I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions