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

On RequestedThemeChanged from device on Windows the FlyoutItem text is not changed #21042

Open
AndreasReitberger opened this issue Mar 6, 2024 · 2 comments
Labels
area-controls-flyout Flyout platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@AndreasReitberger
Copy link

Description

If changing the Theme on Windows (tested 10 and 11) from the device settings, while the AppUserTheme is Unspecified, the app changes the color as it should. However only the FlyoutItem text is not changed.

If switching the theme by setting AppUserTheme at runtime in the application itself, it works. The issue only comes up if the device is switching the theme.

Starting with Dark theme set on Windows

image
image

Now changing the theme to Light at the windows settings while the repro application is running.

image
image

Now, the Label used for the FlyoutItem is set to White and it is not possible to read the "Home" text anymore.
Also the Close and Minimize, Maximize buttons are not visible anymore.

Steps to Reproduce

  1. Use repro project
  2. Run on Windows
  3. Switch the device design schema to Light / Dark

Link to public reproduction project repository

https://github.com/AndreasReitberger/MauiRequestedThemeChangedBug

Version with bug

8.0.7 SR2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

10, 11

Did you find any workaround?

No response

Relevant log output

No response

@AndreasReitberger AndreasReitberger added the t/bug Something isn't working label Mar 6, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 15, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

Verified this issue with Visual Studio 17.10.0 Preview 2. Can repro on Windows platform with sample project.
https://github.com/AndreasReitberger/MauiRequestedThemeChangedBug
image

@AndreasReitberger
Copy link
Author

Any updates here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-flyout Flyout 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

4 participants