Skip to content

Better button styling in workspace selection dialog#3918

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:testing-unstyle-buttons-workspace-dialog
May 1, 2026
Merged

Better button styling in workspace selection dialog#3918
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:testing-unstyle-buttons-workspace-dialog

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 21, 2026

The workspace selection dialog at IDE startup mimics dark-theme styling because the ThemeEngine is not yet available. On macOS this produces buttons that look different from the buttons on other dialogs (e.g. File > Switch Workspace).

This change skips the hard-coded dark styling for Button controls only, so they get the native macOS dark appearance. All other widgets (Shell, Composite, Label, Link) continue to be styled as before.

On Windows the check button needs styling otherwise it appears white.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Test Results

   852 files     852 suites   54m 36s ⏱️
 7 940 tests  7 697 ✅ 243 💤 0 ❌
20 322 runs  19 667 ✅ 655 💤 0 ❌

Results for commit afec7dd.

♻️ This comment has been updated with latest results.

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 27, 2026

@BeckerWdf can you test this?

@BeckerWdf
Copy link
Copy Markdown
Member

@BeckerWdf can you test this?

Didn't I already last week?

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 28, 2026

@BeckerWdf can you test this?

Didn't I already last week?

This one is for your remark here: #3905 (comment) and AFAICS you did not give me feedback on this PR (which might solve your button styling).

@BeckerWdf
Copy link
Copy Markdown
Member

Ah sorry. I did test it. This PR solves it. Somehow I did not write that last week.

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 28, 2026

Ah sorry. I did test it. This PR solves it. Somehow I did not write that last week.

Can you post a screenshot, please?

@BeckerWdf
Copy link
Copy Markdown
Member

With your change:
image

Without your change:
image

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 28, 2026

With your change: image

Without your change: image

That looks like the same to me? The new one is better? Can you explain why?

@BeckerWdf
Copy link
Copy Markdown
Member

With your change: image
Without your change: image

That looks like the same to me? The new one is better? Can you explain why?

Look at the buttons. They are very different. The first one is correct (as all buttons in the IDE look this way). The second one is wrong. I already highlighted the difference in #3905 (comment).

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 28, 2026

I assume you expected a blue button like in the original example you posted. If the above is sufficient I start testing it on Linux and Windows. Windows testing usually takes a bit longer for me.

@BeckerWdf
Copy link
Copy Markdown
Member

I assume you expected a blue button like in the original example you posted. If the above is sufficient I start testing it on Linux and Windows. Windows testing usually takes a bit longer for me.

Sure. Having the button also in blue would be even better. But already this one is fetter then this strange "gradient" styled buttons.

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 28, 2026

Linux Dark looks also really good:

image

Linux Light (unchanged to last years release):

image

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 30, 2026

Windows looks bad:

image

@vogella vogella force-pushed the testing-unstyle-buttons-workspace-dialog branch from 36d6113 to 376733d Compare April 30, 2026 18:56
@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 30, 2026

With latest patch set (special fix only for Windows):

image

@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 30, 2026

Also with "recent workspaces" fine on windows with the latest patch

image

@vogella vogella force-pushed the testing-unstyle-buttons-workspace-dialog branch from 376733d to 14b62ec Compare April 30, 2026 19:32
@vogella vogella changed the title DO-NOT-MERGE-FOR-TESTING: Remove hard-coded button styling in workspace selection dialog Better button styling in workspace selection dialog Apr 30, 2026
@vogella vogella marked this pull request as ready for review April 30, 2026 19:33
@vogella
Copy link
Copy Markdown
Contributor Author

vogella commented Apr 30, 2026

Tested on all platform, planning to merge this tomorrow.

Skip the early dark-theme styling for Button controls in the workspace
selection dialog at startup so buttons get the native macOS dark
appearance instead, matching what the ThemeEngine applies later.

Other widgets (Shell, Composite, Label, Link, ExpandableComposite)
remain styled as before since the ThemeEngine is not yet available
during workspace selection.

On windows we still need to style the check buttons otherwise they look
white.

Fixes: eclipse-platform#3905
@vogella vogella force-pushed the testing-unstyle-buttons-workspace-dialog branch from 14b62ec to afec7dd Compare May 1, 2026 05:38
@vogella vogella merged commit 4888468 into eclipse-platform:master May 1, 2026
18 checks passed
@vogella vogella deleted the testing-unstyle-buttons-workspace-dialog branch May 1, 2026 15:50
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