Skip to content

Set the dark theme preference before resetting widget colors - #4557

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:theme-switch-dark-preference-first
Open

vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:theme-switch-dark-preference-first

Conversation

@vogella

@vogella vogella commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

ThemeEngine reset the widgets before telling the Display about the new theme. On GTK a null color resolves to the current system color, so controls without a rule in the new theme kept the colors of the old one, for example dark buttons, tables and white label text in the PDE manifest editor after switching from Dark to Light. The preference is now set first, so a theme switch gives these controls the same colors as a freshly opened editor.

ThemeEngine reset the widgets before telling the Display about the new theme. On GTK a null color resolves to the current system color, so controls without a rule in the new theme kept the colors of the old one, for example dark buttons and tables in Forms editors after switching from Dark to Light.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   867 files     867 suites   55m 42s ⏱️
 8 546 tests  8 306 ✅ 240 💤 0 ❌
21 510 runs  20 834 ✅ 676 💤 0 ❌

Results for commit 4bd8b48.

@vogella

vogella commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Before:

before-1-dark

Before switch to light:
before-2-switched-to-light

After:

after-1-dark

After: switch to light
after-2-switched-to-light

On Windows, PR 4557 fixes part of the Dark → Light switch problem, but not all of it. After the switch, the Forms section title bars and their titles look right again. Text fields, checkboxes, radio buttons and push buttons stay dark, and so does the background behind some section content. The remaining issues can be investigated and fixed via different PRs.

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