Skip to content

Inherit host control colors in content proposal popups#4137

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:content-assist-popup-inherit-colors
Jun 26, 2026
Merged

Inherit host control colors in content proposal popups#4137
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:content-assist-popup-inherit-colors

Conversation

@vogella

@vogella vogella commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Content proposal popups now fall back to the host control's colors when
the JFace CONTENT_ASSIST_* preferences are unset, instead of defaulting
to white.

RCP applications that style their controls via SWT API get matching
popups for free, and the white completion popup in the dark workspace
selection dialog is fixed.

Content proposal popups now fall back to the colors of the control they
are attached to when the JFace CONTENT_ASSIST_* color preferences are
unset. RCP applications that style their controls through SWT API,
without configuring these JFace preferences, get matching popups for
free. It also fixes the white completion popup in the dark-themed
workspace selection dialog, which is shown before the workbench theme is
applied.
@vogella vogella force-pushed the content-assist-popup-inherit-colors branch from 7b6b721 to 1c7f5c9 Compare June 25, 2026 10:13
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   51m 1s ⏱️ + 1m 43s
 8 083 tests ±0   7 840 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 151 runs  ±0  19 497 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit 1c7f5c9. ± Comparison against base commit e509ee5.

@vogella vogella marked this pull request as ready for review June 25, 2026 12:27
@vogella

vogella commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

This is just a fallback scenario in case the color registry is not yet set, so all regular behavior should be unchanged.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves theming consistency for JFace FieldAssist content proposal popups by inheriting the host control’s foreground/background colors when the CONTENT_ASSIST_* colors are not configured in the JFace color registry. This better aligns popup appearance with SWT-styled controls and avoids mismatched white popups in dark UI contexts (e.g., workspace selection dialog).

Changes:

  • Make ContentProposalAdapter proposal popup colors fall back to the host control’s foreground/background when JFacePreferences.CONTENT_ASSIST_*_COLOR is unset.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vogella vogella merged commit 3597fcf into eclipse-platform:master Jun 26, 2026
18 checks passed
@vogella vogella deleted the content-assist-popup-inherit-colors branch June 26, 2026 08:33
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.

2 participants