Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisplayAlert() does not reflect Windows theme changes #26878

Open
King-Taz opened this issue Dec 31, 2024 · 1 comment
Open

DisplayAlert() does not reflect Windows theme changes #26878

King-Taz opened this issue Dec 31, 2024 · 1 comment
Labels
area-theme Themes, theming platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@King-Taz
Copy link

Description

DisplayAlert() will not immediately reflect Win11 theme changes. User must close/reopen app for theme changes to be reflected.

Steps to Reproduce

Create Maui app with button that calls a method containing

DisplayAlert("Theme Change", "Test message", "Close");

With the app running, change theme light/dark and see colors do not change. Restart app and verify colors have now been changed.

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

net9.0-windows10.0.19041.0

Did you find any workaround?

Restarting the app is the only work-around found

Relevant log output

@King-Taz King-Taz added the t/bug Something isn't working label Dec 31, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Dec 31, 2024
@Zhanglirong-Winnie
Copy link

This issue has been verified Visual Studio 17.13 Preview2.1 (9.0.21 & 9.0.0). Can repro this issue on Windows platform.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-theme Themes, theming platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants