CommunityToolkit / CommunityToolkit/Maui

[BUG] Samples app - AppTheme isn't showing correctly when Windows system is Dark Mode

Open
#2,178 0 comments 0 reactions 0 assignees View on GitHub
area/essentials bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### 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

1. Set your Windows system theme to 'Dark Mode'.
2. Launch the Samples app
3. Navigate to Essentials
4. Select AppTheme
![image](https://github.com/user-attachments/assets/6db9f0f8-63d7-44d8-bd7c-b2c1f1faadc2)

5. Toggle the switch to 'On'
![image](https://github.com/user-attachments/assets/c080b6d7-3367-4606-874d-74182029a0b0)

As you can see, the text for the page and the flyout is of a color that you can't see!

NOTE: It works as expected on Android!

### Expected Behavior

When the users system default is 'Dark Mode', toggling the AppTheme to 'on', the user should be able to read the text.

### Steps To Reproduce

1. Set your system theme to 'Dark Mode'.
2. THEN launch the Samples app
3. Navigate to Essentials
4. Select AppTheme
5. Toggle the switch to 'on'.

### Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

### Environment

```markdown
- .NET MAUI CommunityToolkit: 9.0.3
- OS: Windows 11 Enterprise, Version: 21H2, Build 22000.3147
- .NET MAUI: 8.0.203
```

### Anything else?

Works correctly on Android API 33. Not know if this is a bug on iOS, MacCatalyst or Tizen, as I do not have any suitable devices.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.