From 4a96b39614e77d605819b65922a707496994120d Mon Sep 17 00:00:00 2001 From: Pascal Weyprecht Date: Mon, 23 Sep 2024 15:17:16 +0200 Subject: [PATCH] fix styling of overlay sidebar widget removed explicit (wrong) color for tabitem and set widget background Also-by: Ralf Schlesinger Also-by: Rico Scholz --- .../e4/ui/internal/workbench/swt/StylingEngineImpl.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src-rap/org/eclipse/e4/ui/internal/workbench/swt/StylingEngineImpl.java b/bundles/org.eclipse.e4.ui.workbench.swt/src-rap/org/eclipse/e4/ui/internal/workbench/swt/StylingEngineImpl.java index 56f5045bb6..276717faf9 100644 --- a/bundles/org.eclipse.e4.ui.workbench.swt/src-rap/org/eclipse/e4/ui/internal/workbench/swt/StylingEngineImpl.java +++ b/bundles/org.eclipse.e4.ui.workbench.swt/src-rap/org/eclipse/e4/ui/internal/workbench/swt/StylingEngineImpl.java @@ -16,7 +16,6 @@ import org.eclipse.e4.ui.services.IStylingEngine; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.CTabFolder; -import org.eclipse.swt.graphics.Color; import org.eclipse.swt.widgets.Display; import org.w3c.dom.css.CSSStyleDeclaration; @@ -37,11 +36,7 @@ public void setClassnameAndId(Object widget, String classname, String id) { if (widget instanceof CTabFolder) { CTabFolder folder = (CTabFolder) widget; Display display = folder.getDisplay(); - if (parts.contains("active")) { - folder.setSelectionBackground(display.getSystemColor(SWT.COLOR_LIST_SELECTION)); - } else { - folder.setSelectionBackground((Color) null); - } + folder.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); } } }