Icons in Shell TabBar and AppBar are no longer updated after changing the UserAppTheme #20243
Labels
area-theme
Themes, theming
fixed-in-9.0.0-rc.2.24503.2
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/android 🤖
platform/iOS 🍎
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I have built an app with theme switching by user interaction with a button. When the user clicks the button, the UserAppTheme is set to AppTheme.Light or AppTheme.Dark based on the current theme at app start. To change the color of my icons, I used the AppThemeBinding XAML markup extension and set "Light" to black and "Dark" to white.
If the app is in the light theme and the user switches to the dark theme, the icons will be black instead of white. If the user first navigates to another page, performs a theme switch, and navigates back to the main page, you can see that the icon in the app bar will change to the right color defined in AppThemeBinding, but the icons in the shell tap bar won't change.
In this screenshot you can see the app theme at app start.
This screenshot shows the state after a theme change on the main page:
This screenshot shows the state after a theme switch with back navigation:
Steps to Reproduce
Repo steps for the main page behavior:
Repo steps for the behavior with navigation:
Link to public reproduction project repository
https://github.com/davidschachtschabel/UserAppThemeTest
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: