Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] StatusBarBehavior setting "StatusBarColor=Transparent" is not working

Open RsZoli opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

  • [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

Current Behavior

When the StatusBarColor is set to Transparent to the ContentPage.Behavior, in light mode, the statusbar will be white! Switching to dark mode at runtime, the statusbar will remain white!

Screenshot_1701623125 Screenshot_1701623129

When the StatusBarColor is set to Transparent to the ContentPage.Behavior, in dark mode, the statusbar will be black! Switching to light mode at runtime, the statusbar will remain black!

Screenshot_1701623143 Screenshot_1701623147

Expected Behavior

Statusbar being transparent!

Steps To Reproduce

  • Create a new .NET MAUI App
  • Install CommunityToolKit.Maui NuGet package
  • Add the "xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" and also
  • Add the "<ContentPage.Behaviors><toolkit:StatusBarBehavior StatusBarColor="Transparent" /></ContentPage.Behaviors>" code to the MainPage of the App
  • Run the app

Link to public reproduction project repository

https://github.com/RsZoli/MauiApp2

Environment

- .NET MAUI CommunityToolkit: 7.0.0
- OS: Android 14
- .NET MAUI: 34.0.43/8.0.100 VS 17.8.34322.80

Anything else?

No response

RsZoli avatar Dec 03 '23 17:12 RsZoli