Skip to content

Fix UI not fully updating on runtime system theme change#4900

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/runtime-system-theme-change
Jun 8, 2026
Merged

Fix UI not fully updating on runtime system theme change#4900
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/runtime-system-theme-change

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request improves how the application's theme and system tray icon are updated in response to system and theme changes. The main changes focus on ensuring the tray icon and theme stay in sync with the system, even when the app's theme is fixed.

Theme and system tray synchronization:

  • Updated the MainContentGrid.ActualThemeChanged event handler to call both ApplyTheme() and UpdateSystemTrayStatus(), ensuring the app's cached theme, title bar, and tray icon update when the system theme changes at runtime.
  • Added a listener to ThemeListener.ThemeChanged so that the tray icon updates to follow the system theme, even if the app's theme setting is fixed.

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 047722c into main Jun 8, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the fix/runtime-system-theme-change branch June 8, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Windows Dark / Light change does not affect all parts of the app.

2 participants