Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-05-19 13:19:02 +0000
committerLars Vogel2020-05-22 11:19:16 +0000
commit2bad70a78ad03ae405711724c6e54b992eac6b34 (patch)
tree39193304d64ff0e7661645f93990961fd1352cf0
parentbad06969267b7a103537b2a0221bb542f6e042db (diff)
downloadeclipse.platform.ua-2bad70a78ad03ae405711724c6e54b992eac6b34.tar.gz
eclipse.platform.ua-2bad70a78ad03ae405711724c6e54b992eac6b34.tar.xz
eclipse.platform.ua-2bad70a78ad03ae405711724c6e54b992eac6b34.zip
Bug 563160 - Remove background color from help toobar to look good in
light and dark theme Change-Id: If397ab0e8f08b4f5ff1202b60cd6bf1684ca62f6 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
index f7721972e..61de1bd88 100644
--- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
+++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
@@ -39,9 +39,7 @@ import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.util.Geometry;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.graphics.Rectangle;
@@ -311,7 +309,6 @@ public class IntroLaunchBar {
if (bg != null) {
toolBar.setBackground(bg);
}
- container.addPaintListener(this::onPaint);
MenuManager manager = new MenuManager();
IMenuListener listener = this::contextMenuAboutToShow;
manager.setRemoveAllWhenShown(true);
@@ -333,20 +330,6 @@ public class IntroLaunchBar {
}
- protected void onPaint(PaintEvent e) {
- GC gc = e.gc;
- Color color = fg;
- if (color == null) {
- color = e.display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
- }
- gc.setForeground(color);
- if (bg != null)
- gc.setBackground(bg);
- Point size = container.getSize();
- gc.fillRectangle(0, 0, size.x, size.y);
- gc.drawRectangle(0, 0, size.x - 1, size.y - 1);
- }
-
private void computeColors(Display display) {
if (element.getBackground() != null) {
String value = resolveColor(element.getBackground());

Back to the top