Skip to content

Fix dark styling for popup shells in workspace selection#3955

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:dark-styling-popup-shells-workspace
May 1, 2026
Merged

Fix dark styling for popup shells in workspace selection#3955
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:dark-styling-popup-shells-workspace

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 1, 2026

Summary

  • Use display.addFilter instead of addListener for SWT.Show so the early dark-theme listener actually fires for child popup shells (e.g. the content-proposal popup in the workspace selection combo). Display.addListener only catches events sent to the Display widget itself, not events on child shells — so the listener was previously a no-op for popups.
  • Re-apply styles asynchronously to cover widgets that finish initializing after SWT.Show (e.g. the SWT.VIRTUAL proposal Table whose rows are populated lazily).

The two existing dark dialogs (workspace selection, version warning) appeared dark only because their createContents() overrides call applyDarkStyles(getShell()) directly. The content-proposal popup is created by JFace's ContentProposalAdapter where we have no such hook, so it stayed light.

Reproducible on Windows; not reproducible on Linux.

Use display.addFilter instead of addListener for SWT.Show so the
listener actually fires for child popup shells (e.g. the content
proposal popup in the workspace selection combo). Re-apply styles
asynchronously to cover widgets populated after the Show event.

Reproducible on Windows; not reproducible on Linux.
@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented May 1, 2026

With this fix the completion window in windows is dark otherwise white:

image

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Test Results

   852 files  ±0     852 suites  ±0   50m 54s ⏱️ - 2m 33s
 7 940 tests ±0   7 697 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 322 runs  ±0  19 667 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit 71b7d02. ± Comparison against base commit 27c8c9d.

@vogella vogella merged commit ec728e7 into eclipse-platform:master May 1, 2026
18 checks passed
@vogella vogella deleted the dark-styling-popup-shells-workspace branch May 1, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant