Skip to content

Rebuild toolbar icons when system dark/light mode changes#11558

Merged
niksedk merged 1 commit into
SubtitleEdit:mainfrom
mjuhasz:fix/toolbar-icons-on-system-theme-change
Jun 12, 2026
Merged

Rebuild toolbar icons when system dark/light mode changes#11558
niksedk merged 1 commit into
SubtitleEdit:mainfrom
mjuhasz:fix/toolbar-icons-on-system-theme-change

Conversation

@mjuhasz

@mjuhasz mjuhasz commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

When Theme is set to System, switching macOS between dark and light mode fired ActualThemeVariantChanged but only re-applied button/menu styles — the toolbar PNG icons (loaded from Dark/ or Light/ theme folder at startup) were never reloaded, leaving them faded/inverted (see screenshot below).

Add a SystemThemeChangedCallback on UiTheme and invoke it after SetCurrentTheme(); MainViewModel wires it to a new RebuildToolbar() helper (extracted from the existing ApplySettings and LoadLanguage inline copies).

dark to light issue

When Theme is set to System, switching macOS between dark and light
mode fired ActualThemeVariantChanged but only re-applied button/menu
styles — the toolbar PNG icons (loaded from Dark/ or Light/ theme
folder at startup) were never reloaded, leaving them faded/inverted.

Add a SystemThemeChangedCallback on UiTheme and invoke it after
SetCurrentTheme(); MainViewModel wires it to a new RebuildToolbar()
helper (extracted from the existing ApplySettings and LoadLanguage
inline copies).
@niksedk niksedk merged commit 084ba3d into SubtitleEdit:main Jun 12, 2026
2 checks passed
@mjuhasz mjuhasz deleted the fix/toolbar-icons-on-system-theme-change branch June 12, 2026 18:03
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