Skip to content

Refresh tray icon on system theme change - #5210

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/tray-icon-theme-change
Jul 29, 2026
Merged

Refresh tray icon on system theme change#5210
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
fix/tray-icon-theme-change

Conversation

@GabrielDuf

Copy link
Copy Markdown
Contributor

This pull request introduces a small but important change to the MainWindow.axaml.cs file to enhance system tray integration. Now, when the WM_SETTINGCHANGE message is received, the system tray status is updated accordingly. This ensures the application's tray icon reflects any changes in system settings in real time.

System tray integration:

  • Added a handler in OnWindowsWndProc to call UpdateSystemTrayStatus() when a WM_SETTINGCHANGE message is received, ensuring the tray icon stays in sync with system settings.

@GabrielDuf
Gabriel Dufresne (GabrielDuf) merged commit c58edf9 into main Jul 29, 2026
5 checks passed
@GabrielDuf
Gabriel Dufresne (GabrielDuf) deleted the fix/tray-icon-theme-change branch July 29, 2026 14:27
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] Monochrome/Legacy Icon does not change automatically following theme change

2 participants