Commit 6a5f7a8
committed
Use new SWT Display.setDarkThemePreferred() API for dark theme
Replace platform-specific dark theme processors (Win32, GTK, Cocoa) with
the new cross-platform SWT API Display.setDarkThemePreferred(boolean).
The ThemeEngine now calls display.setDarkThemePreferred() directly when
a theme is set, signaling the dark mode preference to the OS for native
components like title bars, scrollbars, and native dialogs.
In IDEApplication, the manual dark styling (hardcoded colors, SWT.Show
listeners, recursive style application) is replaced with a single call
to display.setDarkThemePreferred(true) during early startup.
Dark theme processor code removed from:
- org.eclipse.e4.ui.swt.win32 (DarkThemeProcessor using OS.setTheme)
- org.eclipse.e4.ui.swt.gtk (DarkThemeProcessor using OS.setDarkThemePreferred)
- org.eclipse.e4.ui.workbench.renderers.swt.cocoa (CocoaDarkThemeProcessor using OS.setTheme)
The bundles themselves are kept for later retirement.
Fixes #38571 parent 357b87c commit 6a5f7a8
File tree
12 files changed
+20
-217
lines changed- bundles
- org.eclipse.e4.ui.css.swt.theme
- META-INF
- src/org/eclipse/e4/ui/css/swt/internal/theme
- org.eclipse.e4.ui.swt.gtk
- META-INF
- src/org/eclipse/e4/ui/swt/internal/gtk
- org.eclipse.e4.ui.swt.win32
- META-INF
- src/org/eclipse/e4/ui/swt/internal/win32
- org.eclipse.e4.ui.workbench.renderers.swt.cocoa
- META-INF
- src/org/eclipse/e4/ui/swt/internal/cocoa
- org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application
12 files changed
+20
-217
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
513 | 516 | | |
514 | 517 | | |
515 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 4 | | |
13 | 5 | | |
Lines changed: 0 additions & 60 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 4 | | |
13 | 5 | | |
Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 14 | | |
25 | 15 | | |
0 commit comments