Skip to content

StatusBar and FlyoutBackground wrong color on Android #32987

Description

@twojnarowski

Description

StatusBar and FlyoutBackground now take primaryColor from Platforms\Android\Resources\values\colors.xml on Android.
Previously there was no color taken from that file. On iOS and Windows nothing changed, Flyout header and StatusBar still has the color of FlyoutBackground, but on Android it now takes the color from colors.xml

Steps to Reproduce

  1. Create a .NET 9 MAUI app, edit file Platforms\Android\Resources\values\colors.xml and change primary color to black: <color name="colorPrimary">#000000</color>
  2. Launch the app, the status bar is purple.
  3. Create a .NET 10 MAUI app, edit file Platforms\Android\Resources\values\colors.xml and change primary color to black: <color name="colorPrimary">#000000</color>
  4. Launch the app, the status bar is black but the text on status bar and icons are also black, so nothing is readable.

So on Android there is no way to make it work. I can change the colorAccent value, but that does not change the color of icons and text.

Link to public reproduction project repository

No response

Version with bug

10.0.11

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.120 SR12

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    i/regressionThis issue described a confirmed regression on a currently supported versionp/0Current heighest priority issues that we are targeting for a release.platform/androidregressed-in-10-rc2s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions