You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps To Reproduce
GIVEN: user is in mainpage of the app
WHEN: changing the android OS Theme to (e.g.) black and navigating back to the app
THEN: the statusbar stays white
Expected Behavior
the color of the statusbar should change immediately with the OS theme change
Additional Info
The statusbar color changes correctly, when hotreload takes place
My current (crude) workaround is subscribing to the RequestedThemeChanged event and manually setting the colors and styles but I feel like this functionality should be in the Behavior itself.
Application.Current.RequestedThemeChanged += (sender, args) =>
{
switch (args.RequestedTheme)
{
case AppTheme.Dark:
StatusBar.SetColor(Application.Current.Resources["OffBlack"] as Color);
StatusBar.SetStyle(StatusBarStyle.LightContent);
break;
case AppTheme.Light:
case AppTheme.Unspecified:
StatusBar.SetColor(Colors.White);
StatusBar.SetStyle(StatusBarStyle.DarkContent);
break;
}
};
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
When setting the StatusBarColor with AppThemeBinding, changes of light/dark mode doesn't get reflected on the fly!
The page needs to be navigated to once more for the changes to take effect!
Screen_Recording_20241028_1000142.mp4
Expected Behavior
Changes should take effect on the fly!
Steps To Reproduce
Link to public reproduction project repository
https://github.com/RsZoli/GitHubRepros
Environment
android 34.0.138/8.0.100 SDK 8.0.400, VS 17.11.35327.3
ios 18.0.8303/8.0.100 SDK 8.0.400, VS 17.11.35327.3
maui-windows 8.0.82/8.0.100 SDK 8.0.400, VS 17.11.35327.3
Anything else?
No response
The text was updated successfully, but these errors were encountered: