Skip to content

[BUG] Popup "background tint" does not honor current Theme #2439

@sbloomztf

Description

@sbloomztf

Is there an existing issue for this?

  • I have searched the existing issues

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

Current Behavior

When the Theme is overridden from the "Default App mode" setting in windows, the popup background tint still uses the theme from this "Default App Mode" windows setting, rather than the overridden values in the app.

When a popup is shown, the tint is white\light when the Default App Mode is Light. The tint is black\dark when the Default App Mode is Dark.

"Default App Mode" = Dark
Image

"Default App Mode" = Light

Image

Expected Behavior

The popup background tint should adhere to the overridden values in the app.

Steps To Reproduce

This can be reproduced by adding the following changes in the sample app
Application.Current.UserAppTheme = AppTheme.Dark; in App.xaml.cs constructor
RequestedTheme="Dark" in ../platforms/windows/app.xaml

Link to public reproduction project repository

https://github.com/sbloomztf/Maui.git

Environment

- .NET MAUI CommunityToolkit: 10.x
- OS: Windows 11 10.0.22621 Build 22621
- .NET MAUI: 9.x

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions