Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Priya Shanmugam2019-04-30 05:08:00 -0400
committerLakshmi Priya Shanmugam2019-04-30 05:14:11 -0400
commit185875bb106fe3fe40c69c19fad03e22794580e3 (patch)
treec1a66d00ed982fca9713d82e41040050569a372b
parentf774a75a5d2456f1c59934819cb61e260b626d48 (diff)
downloadeclipse.platform.swt-185875bb106fe3fe40c69c19fad03e22794580e3.tar.gz
eclipse.platform.swt-185875bb106fe3fe40c69c19fad03e22794580e3.tar.xz
eclipse.platform.swt-185875bb106fe3fe40c69c19fad03e22794580e3.zip
Bug 540357 - [10.14] Make SWT adapt to switching to dark mode (and back)
Revert to using windowBackgroundColor() for COLOR_WIDGET_BACKGROUND, as controlBackgroundColor() returns white. Change-Id: I1be55eee8769084bcbed8eb71e56d931cbeaa495
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
index cebdfb432a..4137c9b67d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
@@ -1899,7 +1899,7 @@ double /*float*/ [] getWidgetColorRGB (int id) {
break;
case SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW: color = NSColor.controlLightHighlightColor(); break;
case SWT.COLOR_WIDGET_BACKGROUND:
- color = OS.VERSION_MMB >= OS.VERSION_MMB (10, 14, 0) ? NSColor.controlBackgroundColor()
+ color = OS.VERSION_MMB >= OS.VERSION_MMB (10, 14, 0) ? NSColor.windowBackgroundColor()
: NSColor.controlHighlightColor();
break;
case SWT.COLOR_WIDGET_FOREGROUND: color = NSColor.controlTextColor(); break;

Back to the top