Skip to content

Use a solid color for unselected tabs - #4275

Open
vogella wants to merge 2 commits into
eclipse-platform:masterfrom
vogella:unselected-tabs-solid-color
Open

Use a solid color for unselected tabs#4275
vogella wants to merge 2 commits into
eclipse-platform:masterfrom
vogella:unselected-tabs-solid-color

Conversation

@vogella

@vogella vogella commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The themes declared two identical gradient stops for swt-unselected-tabs-color, which left CTabFolder.gradientColors set and made the folder paint the controls in its tab row (min/max bar, chevron, topRight composite) with a rendered background image instead of a plain color. On GTK that image is not painted on a ToolBar, so those bars can fall back to the GTK theme color.

The themes now declare a single color, the CSS handler collapses a flat gradient to the solid path so custom themes get the same benefit, and the unused *_UNSELECTED_TABS_COLOR_END definitions are removed. No visual change in the shipped themes: all stops were identical or differed by one unit.

Fixes #4274

vogella and others added 2 commits August 24, 2026 14:00
The themes declared two identical gradient stops, which left
CTabFolder.gradientColors set and made the folder paint the controls in
its tab row with a rendered background image instead of a plain color.
The themes now use a single color, the CSS handler collapses a flat
gradient to the solid path, and the unused *_UNSELECTED_TABS_COLOR_END
definitions are removed.

Fixes eclipse-platform#4274
@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 99cf06de1e261c8f93ae255148d418ce52409959 Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Mon, 24 Aug 2026 12:18:11 +0000
Subject: [PATCH] Version bump(s) for 4.41 stream


diff --git a/bundles/org.eclipse.ui.themes/META-INF/MANIFEST.MF b/bundles/org.eclipse.ui.themes/META-INF/MANIFEST.MF
index 6d2683ea5e..c871b619c3 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.0.qualifier
+Bundle-Version: 1.3.100.qualifier
 Bundle-Vendor: %Plugin.providerName
 Bundle-Localization: plugin
 Require-Bundle: org.eclipse.e4.ui.css.swt.theme
-- 
2.55.0

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

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   858 files  ±0     858 suites  ±0   49m 51s ⏱️ + 1m 46s
 8 172 tests ±0   7 929 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 418 runs  ±0  19 762 ✅ ±0  656 💤 ±0  0 ❌ ±0 

Results for commit 54f1d11. ± Comparison against base commit f08b692.

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.

swt-unselected-tabs-color always takes the gradient path, even for a flat colour

3 participants