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
- 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>
- Launch the app, the status bar is purple.
- 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>
- 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
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
Platforms\Android\Resources\values\colors.xmland change primary color to black:<color name="colorPrimary">#000000</color>Platforms\Android\Resources\values\colors.xmland change primary color to black:<color name="colorPrimary">#000000</color>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