Skip to content

Improve Contrast of Line Number Color#3387

Merged
BeckerWdf merged 1 commit into
eclipse-platform:masterfrom
BeckerWdf:lineNoColor
Oct 10, 2025
Merged

Improve Contrast of Line Number Color#3387
BeckerWdf merged 1 commit into
eclipse-platform:masterfrom
BeckerWdf:lineNoColor

Conversation

@BeckerWdf
Copy link
Copy Markdown
Member

Fixes: #3385

@BeckerWdf
Copy link
Copy Markdown
Member Author

BeckerWdf commented Oct 9, 2025

You can see the difference here:

Screenshot 2025-10-09 at 15 28 53

I made screenshots and zoomed it so that the difference more visible.

@BeckerWdf BeckerWdf self-assigned this Oct 9, 2025
@BeckerWdf BeckerWdf added this to the 4.38 M2 milestone Oct 9, 2025
isEditable="false"
label="%dummy"
value="120,120,120">
value="115,115,115">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't we instead use a default system color constant instead, like COLOR_WIDGET_NORMAL_SHADOW_RGBA ? The OS usually makes good choice regarding accessibility. Relying on them by default would probably prevent current, and future, trouble.

Copy link
Copy Markdown
Member Author

@BeckerWdf BeckerWdf Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the value of COLOR_WIDGET_NORMAL_SHADOW_RGBA on the different OSes?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value depends on the theme used. One can run SWT's ControlExample - it has a tab that shows all these colors.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Linux it's 172,172,171 so actually brighter... But still, I don't think any color should be hardcoded, and we should instead rely on the OS, which may modify these values according to accessibility settings.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

177,172,171 is even worse:
image

So this does not help.

Copy link
Copy Markdown
Member Author

@BeckerWdf BeckerWdf Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concretely, my experience having learned a bit how Gnome does its UI/UX decisions with real experts;

By the way: I was also working with a real (UX) expert from my team on that topic.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's agree on merging this one.

Let's say, I don't disagree on merging it. It's indeed not worse from the screenshot.
It looks like this color is not overridden by the dark theme. Have you checked it with dark theme? Should the dark theme color be adjusted too?

By the way: I was also working with a real (UX) expert from my team on that topic.

Then (out of curiosity), can you please ask them how come that this line numbers are a problem for other Gnome-based apps seem happy with a lighter color for line numbers?

Also, 1 other thing maybe worth challenging in the choice of color can be "why sticking to greyscale"? VSCode or Visual Studio seem to be using some dark cyan color and it looks nice, maybe the color is even derived from the COLOR_LINK_FOREGROUND system color.
That can be a good inspiration.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this color is not overridden by the dark theme. Have you checked it with dark theme? Should the dark theme color be adjusted too?

I did check. It's overridden in the dark theme and contrast in the dark theme is ok.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, 1 other thing maybe worth challenging in the choice of color can be "why sticking to greyscale"? VSCode or Visual Studio seem to be using some dark cyan color and it looks nice, maybe the color is even derived from the COLOR_LINK_FOREGROUND system color.
That can be a good inspiration.

I also checked VSCode. For VSCode there are a ton of themes and different themes do that differently. I also so that cyan-ish color but there are also themes that use a gresh-ish color.

I just wanted to stick to the "Eclipse way" and only make minimal changes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then (out of curiosity), can you please ask them how come that this line numbers are a problem for other Gnome-based apps seem happy with a lighter color for line numbers?

What do you mean? You you please explain your question again?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 9, 2025

Test Results

 3 018 files   3 018 suites   2h 30m 39s ⏱️
 8 226 tests  7 977 ✅ 249 💤 0 ❌
23 598 runs  22 804 ✅ 794 💤 0 ❌

Results for commit 74238d5.

♻️ This comment has been updated with latest results.

@BeckerWdf BeckerWdf merged commit d79c32e into eclipse-platform:master Oct 10, 2025
18 checks passed
@BeckerWdf BeckerWdf deleted the lineNoColor branch October 10, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Color Contrast of Line Number Ruler Not Sufficient

4 participants