diff options
| author | Lakshmi Shanmugam | 2020-11-30 15:01:18 +0000 |
|---|---|---|
| committer | Lakshmi Shanmugam | 2020-11-30 15:01:18 +0000 |
| commit | a619411c5d0d6467d0725acb2b7d9dbec7707aca (patch) | |
| tree | 3a04d54bfa83978856a5a8e64790548a3120d922 | |
| parent | bf9811016eaf50c821d429fa97f5448f80a1847c (diff) | |
| download | eclipse.platform.swt-a619411c5d0d6467d0725acb2b7d9dbec7707aca.tar.gz eclipse.platform.swt-a619411c5d0d6467d0725acb2b7d9dbec7707aca.tar.xz eclipse.platform.swt-a619411c5d0d6467d0725acb2b7d9dbec7707aca.zip | |
Bug 569224 - [Big Sur] Different color for inactive selection background
in Eclipse dark theme
Reset alternateSelectedControlColor and secondarySelectedControlColor
when app appearance is changed using Display.setAppAppearance().
Change-Id: I2c61523da97d7e3db85b5eb0f53f75d1e75eafb0
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java | 8 |
1 files changed, 8 insertions, 0 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 89dc03fa50..bf3c00440d 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 @@ -4170,6 +4170,13 @@ void removePopup (Menu menu) { } } +/** + * Resets the cached alternateSelectedControlColor and secondarySelectedControlColor. + */ +void resetSelectedControlColors() { + alternateSelectedControlColor = secondarySelectedControlColor = null; +} + boolean runAsyncMessages (boolean all) { return synchronizer.runAsyncMessages (all); } @@ -4349,6 +4356,7 @@ void setAppAppearance (APPEARANCE newMode) { if (appearance != null && application != null) { OS.objc_msgSend(application.id, OS.sel_setAppearance_, appearance.id); appAppearance = newMode; + resetSelectedControlColors(); } } |
