diff options
| author | Lakshmi Shanmugam | 2020-10-23 15:00:56 +0000 |
|---|---|---|
| committer | Sravan Kumar Lakkimsetti | 2021-08-26 12:55:33 +0000 |
| commit | 10b4b99b4a6bb60a23f54cbd7f155783396e21a1 (patch) | |
| tree | 478af5ed05a08b2013d5d671f7952cd33cfd04c5 | |
| parent | bf78d422b2f2ecdc002f36af00fb3f0a41a92e96 (diff) | |
| download | eclipse.platform.swt-10b4b99b4a6bb60a23f54cbd7f155783396e21a1.tar.gz eclipse.platform.swt-10b4b99b4a6bb60a23f54cbd7f155783396e21a1.tar.xz eclipse.platform.swt-10b4b99b4a6bb60a23f54cbd7f155783396e21a1.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)
(cherry picked from commit 131427e0ba3235c00425a9b1492d5a25cde06070)
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/180979
(cherry picked from commit a9817f11e82a9fb06ec9113489d16f121e913f2a)
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/183782
Tested-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Reviewed-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
| -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 351456cccf..623bfd78b4 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 @@ -458,7 +458,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 |
