diff options
| author | Lakshmi Shanmugam | 2020-10-23 15:00:56 +0000 |
|---|---|---|
| committer | Lakshmi P Shanmugam | 2021-04-07 12:44:42 +0000 |
| commit | 131427e0ba3235c00425a9b1492d5a25cde06070 (patch) | |
| tree | c6c7c40d63e026352eee6663a5b101b1072f2af1 | |
| parent | e8cb954cb95ce6e2e33800755db7cc8eeb3c3c2c (diff) | |
| download | eclipse.platform.swt-131427e0ba3235c00425a9b1492d5a25cde06070.tar.gz eclipse.platform.swt-131427e0ba3235c00425a9b1492d5a25cde06070.tar.xz eclipse.platform.swt-131427e0ba3235c00425a9b1492d5a25cde06070.zip | |
Bug 567389 - [Big Sur] Selected TabFolder's text is invisible on macOS
11
On BigSur, alternateSelectedControlTextColor doesn't give the correct
foreground color for selected TabItem.
Change-Id: I2a9b0bd545eb1cf76878ad3d24cc2a72ece631c1
Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>(cherry picked from commit 4485d6db71223cb913565a70f62efe6d51392162)
(cherry picked from commit 35f498ace1775764c94619803ff01347bd4886e7)
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java index f29cebf5cc..3ebd4170a4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java @@ -463,7 +463,7 @@ void updateText (boolean selected) { } double /*float*/ [] foreground = parent.foreground; if (foreground == null && selected && OS.VERSION >= 0x1070) { - foreground = display.getNSColorRGB(NSColor.alternateSelectedControlTextColor()); + foreground = OS.isBigSurOrLater() ? display.selectedControlTextColor : display.alternateSelectedControlTextColor; } attriStr = parent.createString(text, null, foreground, 0, false, true, true); //force parent to resize |
