dotnet / dotnet/maui

[Android] Status bar icons become unreadable when UseMaterial3 is enabled in Microsoft.Maui.Controls 10.0.100

Open
#37,705 1 comment 2 reactions 0 assignees View on GitHub
area-core-platform i/regression platform/android regressed-in-10.0.100 s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

When Material 3 is enabled by setting:
`true`

the Android status bar icon and text colors become incorrect, resulting in poor visibility.

With Microsoft.Maui.Controls 10.0.100, the status bar appears to use the same color for both the background and the status bar content.

Observed behavior:

Light mode:
- Status bar background: White
- Status bar icons/text: White

Dark mode:
- Status bar background: Black
- Status bar icons/text: Black

As a result, the status bar content becomes difficult or impossible to read.

This issue reproduces on Android 15 and Android 17.

The problem does not occur with Microsoft.Maui.Controls 10.0.90 under the same project configuration. In that version, the status bar colors are applied correctly and remain readable.

I have screenshots available comparing 10.0.90 and 10.0.100.

Image

### Steps to Reproduce

1. Create a new .NET MAUI application from the default Visual Studio template.

2. Update Microsoft.Maui.Controls to version 10.0.100.

3. Add the following property to the project file(.csproj):
` true
`
4. Build and run the application on an Android device or Android emulator.

5. Observe the status bar appearance:
- Light mode: white background with white icons/text.
- Dark mode: black background with black icons/text.

6. Downgrade Microsoft.Maui.Controls to version 10.0.90.

7. Rebuild and run the application again.

8. Compare the status bar appearance. The issue does not occur in 10.0.90 and the icon/text colors are displayed correctly.

### Link to public reproduction project repository

_No response_

### Version with bug

10.0.100

### Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

### Last version that worked well

10.0.90

### Affected platforms

Android

### Affected platform versions

Android 15/17

### Did you find any workaround?

I understand that there is no other way than to downgrade to 10.0.90.

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with a default .NET MAUI application using Microsoft.Maui.Controls 10.0.100 and true on Android, then compare its status bar with version 10.0.90 in light and dark modes. Trace the Android status bar configuration used by Material 3; done means the background and icon/text colors remain readable in both modes without downgrading.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.