Bug 507298: Use fitting color for Heap Status
Heapstatus is not a tooltip. It should not be using tooltip colors.
This improper use of Tooltip color makes heapstatus have very
poor contrast on Gtk. (See screenshot)
Since it is a regular widget, it should be using regular widget
colors.
(See screenshot attached to bug to see before/after).
Change-Id: I18962495557c6e6742b4ce8af6dc51c8c7a43ddb
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=507298
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java
index 6fe6fca..83bc080 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java
@@ -130,13 +130,13 @@
imgBounds = gcImage.getBounds();
disabledGcImage = new Image(display, gcImage, SWT.IMAGE_DISABLE);
}
- usedMemCol = display.getSystemColor(SWT.COLOR_INFO_BACKGROUND);
+ usedMemCol = display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
lowMemCol = new Color(display, 255, 70, 70); // medium red
freeMemCol = new Color(display, 255, 190, 125); // light orange
bgCol = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
sepCol = topLeftCol = armCol = display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
bottomRightCol = display.getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW);
- markCol = textCol = display.getSystemColor(SWT.COLOR_INFO_FOREGROUND);
+ markCol = textCol = display.getSystemColor(SWT.COLOR_WIDGET_FOREGROUND);
createContextMenu();