Skip to content

Fix: Refresh Windows title bar after theme changes - #8402

Open
rustbasic wants to merge 5 commits into
emilk:mainfrom
rustbasic:p114
Open

Fix: Refresh Windows title bar after theme changes#8402
rustbasic wants to merge 5 commits into
emilk:mainfrom
rustbasic:p114

Conversation

@rustbasic

Copy link
Copy Markdown
Contributor

Fix: Refresh Windows title bar after theme changes

Description

On Windows, changing the window theme updates egui immediately, but the native title bar may keep its previous colors until the window activation state changes.

This sends WM_NCACTIVATE after applying ViewportCommand::SetTheme, forcing Windows to refresh the non-client title bar state without changing the real focus.

Add platform-specific dependencies for Windows and Unix-like OS.
Added refresh_windows_non_client_activation function to update window title bar state on theme change in Windows.
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

Preview available at https://egui-pr-preview.github.io/pr/8402-p114
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

View snapshot changes at kitdiff

@emilk
emilk requested a review from lucasmerlin August 11, 2026 12:01
@emilk emilk added bug Something is broken eframe Relates to epi and eframe native-windows Running on native Windows OS labels Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is broken eframe Relates to epi and eframe native-windows Running on native Windows OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants