Skip to content

Dim dirty tab bullet on inactive tabs in CTabFolderRenderer#3279

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:dim-dirty-indicator-inactive-tabs
May 3, 2026
Merged

Dim dirty tab bullet on inactive tabs in CTabFolderRenderer#3279
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:dim-dirty-indicator-inactive-tabs

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 2, 2026

The dirty indicator bullet in CTabFolder previously inherited the tab text foreground color. That color only differs between selected and unselected tabs in dark themes via CSS, so in light themes the bullet looked identical on active and inactive tabs. Fixing this in CSS would also dim the tab title text, which is undesirable.

This change applies a reduced alpha (140, roughly 55%) when drawing the bullet on unselected tabs, so the active/inactive distinction shows up in any theme without configuration. The 3-arg drawClose overload is preserved for binary compatibility.

Fixes #3278

The dirty indicator bullet inherited the tab text foreground color, which
only varies between selected and unselected tabs in dark themes via CSS.
In light themes the bullet looked identical on active and inactive tabs.

Apply a reduced alpha (140) when drawing the bullet on unselected tabs so
the active/inactive distinction works in any theme without CSS changes.

Fixes eclipse-platform#3278
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

Test Results

  182 files  +   30    182 suites  +30   27m 44s ⏱️ + 6m 5s
4 723 tests +   57  4 700 ✅ +   55   23 💤 + 3  0 ❌ ±0 
6 812 runs  +1 158  6 649 ✅ +1 124  163 💤 +35  0 ❌ ±0 

Results for commit a86c593. ± Comparison against base commit 17667a8.

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented May 3, 2026

image image

@azoitl WDYT?

@azoitl
Copy link
Copy Markdown

azoitl commented May 3, 2026

@vogella I like it a lot.

@vogella vogella marked this pull request as ready for review May 3, 2026 12:08
@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented May 3, 2026

@vogella I like it a lot.

@azoitl It was your idea. :-) Thank you for this great suggestion

@vogella vogella merged commit 108533e into eclipse-platform:master May 3, 2026
24 checks passed
@vogella vogella deleted the dim-dirty-indicator-inactive-tabs branch May 3, 2026 12:30
@azoitl
Copy link
Copy Markdown

azoitl commented May 3, 2026

Happy that my suggestion was helpful 😊

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.

New Dirty Indicator Should be Lighter for Inactive Tabs in Light Mode

2 participants