Commit 9b991c8
committed
Restyle Copy Settings check buttons on macOS when section is shown
On macOS Cocoa, setBackground/setForeground applied to a widget that is
currently hidden is not retained once the widget is realized. The "Copy
Settings" section of ChooseWorkspaceWithSettingsDialog is created with
setVisible(false), so the theme-engine colors on its check buttons are
dropped and the buttons paint with the default light system colors when
the user expands the section on a dark theme.
Re-apply the parent background/foreground to the check buttons when the
section first becomes visible. Guarded with Util.isMac() since GTK and
Windows retain the colors across realize and do not need this workaround.
Fixes #38971 parent 39cf286 commit 9b991c8
1 file changed
Lines changed: 15 additions & 0 deletions
File tree
- bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
156 | 171 | | |
157 | 172 | | |
158 | 173 | | |
| |||
0 commit comments