Open LexeyLex opened 5 months ago
When I change the application theme to another in code, the buttons in the toolbar (Close, Collapse, Maximize) remain with the style of the previous theme.
((FrameworkElement)Content.XamlRoot.Content).RequestedTheme = ElementTheme.Light;
Toolbar button colors should change appropriately to match the theme of the entire program
WinUI 3 - Windows App SDK 1.5.4: 1.5.240607001
Windows 11 (22H2): Build 22621
All other colors change perfectly
Application.RequestedTheme needs to handle this scenario. WinUIGallery works around this issue (not ideal) but you can see how it is done there.
Describe the bug
When I change the application theme to another in code, the buttons in the toolbar (Close, Collapse, Maximize) remain with the style of the previous theme.
Steps to reproduce the bug
((FrameworkElement)Content.XamlRoot.Content).RequestedTheme = ElementTheme.Light;
Expected behavior
Toolbar button colors should change appropriately to match the theme of the entire program
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.5.4: 1.5.240607001
Windows version
Windows 11 (22H2): Build 22621
Additional context
All other colors change perfectly