Skip to content

Keep the selection of tool items visible in the macOS dark theme - #4601

Open
HeikoKlare wants to merge 2 commits into
eclipse-platform:masterfrom
HeikoKlare:macos-dark-tool-item-selection
Open

HeikoKlare wants to merge 2 commits into
eclipse-platform:masterfrom
HeikoKlare:macos-dark-tool-item-selection

Conversation

@HeikoKlare

@HeikoKlare HeikoKlare commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What & Why

In the macOS dark theme, the broad Composite > * > * rule gives tool items a background color of their own. On macOS, a tool item paints that color over its content: a selected toggle fills its selection with it instead of the native lighter highlight, so only a faint outline is left, and a separator hides its line. This affects every tool item that gets styled: the items of view toolbars right away, and the items of the main toolbar once it is rendered again, for example by Lock the Toolbars. A selected toggle like Mark Occurrences then loses its highlight until Eclipse is restarted.

This change leaves the color of tool items unset in the macOS dark theme, as the Windows dark theme already does since 53ecbfe. Tool items then show the color of their tool bar, keep the native selection highlight, and show separator lines as in the light theme. GTK stays unchanged, as resetting the color removes the outline of checked items there.

Screenshots

image

How to reproduce

  1. Start Eclipse on macOS with the dark theme.
  2. Open a Java editor and enable Toggle Mark Occurrences in the main toolbar.
  3. Right-click the main toolbar and choose Lock the Toolbars.
  4. Compare the Mark Occurrences button before and after, zoomed in: its lighter selection fill is gone, only the outline is left.

The light theme is not affected.

🤖 Generated with Claude Code

The broad "Composite > * > *" rule of the dark theme also gives tool items
a color of their own. On macOS, an item paints that color over its content:
a checked item fills its selection with it instead of its lighter highlight,
and a separator hides its line. This affects every tool item that is styled,
such as the items of view toolbars and, once Lock the Toolbars renders them
again, the items of the main toolbar, where a selected toggle like Mark
Occurrences then only keeps its outline.

Leave the color of tool items unset in the macOS dark theme, as the Windows
dark theme already does.

Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
@HeikoKlare HeikoKlare changed the title [macOS] Keep the selection of tool items visible in the macOS dark theme Keep the selection of tool items visible in the macOS dark theme Nov 29, 2026
@eclipse-platform-bot

Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

bundles/org.eclipse.ui.themes/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From 6e6b233288ef720f0b6b2aa0bf771e0ac6293bcb Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Sun, 29 Nov 2026 21:12:41 +0000
Subject: [PATCH] Version bump(s) for 4.43 stream


diff --git a/bundles/org.eclipse.ui.themes/META-INF/MANIFEST.MF b/bundles/org.eclipse.ui.themes/META-INF/MANIFEST.MF
index c871b619c3..952d9f8837 100644
--- a/bundles/org.eclipse.ui.themes/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.ui.themes/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %Plugin.name
 Bundle-SymbolicName: org.eclipse.ui.themes;singleton:=true
-Bundle-Version: 1.3.100.qualifier
+Bundle-Version: 1.3.200.qualifier
 Bundle-Vendor: %Plugin.providerName
 Bundle-Localization: plugin
 Require-Bundle: org.eclipse.e4.ui.css.swt.theme
-- 
2.56.1

Further information are available in Common Build Issues - Missing version increments.

@HeikoKlare
HeikoKlare marked this pull request as ready for review November 29, 2026 21:13
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   867 files  ±0     867 suites  ±0   50m 29s ⏱️ + 9m 19s
 8 572 tests ±0   8 332 ✅ ±0  240 💤 ±0  0 ❌ ±0 
21 588 runs  ±0  20 915 ✅ ±0  673 💤 ±0  0 ❌ ±0 

Results for commit 093f1a3. ± Comparison against base commit 6cf7aae.

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.

2 participants