Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLakshmi Shanmugam2018-11-20 03:11:48 -0500
committerLakshmi Shanmugam2018-11-20 05:50:22 -0500
commit1b0455eff44708516e3b7e945ae009e7a909d4be (patch)
tree27164998b5b479d0249bef8108c5020acdbe2e62
parenta780ec4f526f8f7d27cee2d121d9b44e39deb71e (diff)
downloadeclipse.platform.swt-1b0455eff44708516e3b7e945ae009e7a909d4be.tar.gz
eclipse.platform.swt-1b0455eff44708516e3b7e945ae009e7a909d4be.tar.xz
eclipse.platform.swt-1b0455eff44708516e3b7e945ae009e7a909d4be.zip
Bug 541335: [10.14] CTabfolder has black borders
Hard coded the colors for COLOR_WIDGET_NORMAL_SHADOW and COLOR_WIDGET_LIGHT_SHADOW on Mac 10.14 Change-Id: Iaccb29c3c8dd48c5340b174fd831a9773b207a6f Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java14
1 files changed, 12 insertions, 2 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 fd96736ac6..ad8711a4f0 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
@@ -1875,8 +1875,18 @@ double /*float*/ [] getWidgetColorRGB (int id) {
case SWT.COLOR_TITLE_INACTIVE_BACKGROUND: color = NSColor.secondarySelectedControlColor(); break;
case SWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT: color = NSColor.secondarySelectedControlColor(); break;
case SWT.COLOR_WIDGET_DARK_SHADOW: color = NSColor.controlDarkShadowColor(); break;
- case SWT.COLOR_WIDGET_NORMAL_SHADOW: color = NSColor.controlShadowColor(); break;
- case SWT.COLOR_WIDGET_LIGHT_SHADOW: color = NSColor.controlHighlightColor(); break;
+ case SWT.COLOR_WIDGET_NORMAL_SHADOW:
+ if (OS.VERSION_MMB >= OS.VERSION_MMB (10, 14, 0)) {
+ return new double /*float*/ [] {159/255f, 159/255f, 159/255f, 1};
+ }
+ color = NSColor.controlShadowColor();
+ break;
+ case SWT.COLOR_WIDGET_LIGHT_SHADOW:
+ if (OS.VERSION_MMB >= OS.VERSION_MMB (10, 14, 0)) {
+ return new double /*float*/ [] {232/255f, 232/255f, 232/255f, 1};
+ }
+ color = NSColor.controlHighlightColor();
+ 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.windowBackgroundColor()

Back to the top