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

OS system components ignore app theme #22058

Open
NiekRossenInfoSupport opened this issue Apr 25, 2024 · 2 comments
Open

OS system components ignore app theme #22058

NiekRossenInfoSupport opened this issue Apr 25, 2024 · 2 comments
Labels
area-xaml XAML, CSS, Triggers, Behaviors platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@NiekRossenInfoSupport
Copy link

Description

In the maui app, when the operating system theme is set opposite to that of the app itself, certain components such as the datepicker, keyboard, and navigation list animations display in the wrong theme.

This results in the components adopting the theme of the operating system, causing the user to see a component in the opposite color.

For example:
The app is set to the "Light" theme, but the user has their phone's theme set to "Dark." The app appears to the user in white, but native iOS/Android components like the datepicker and keyboard appear in the theme of the operating system, in this case, dark.

I've reproduced this on the following devices: Windows, Android, IOS

Please refer to the attached images for clarification.:
image
image

Steps to Reproduce

  1. Create a new maui project
  2. Set the UserAppTheme to Dark UserAppTheme = AppTheme.Dark;
  3. Insert a timepicker to you mainwindow
  4. Set your os system theme to light
  5. Launch the app
  6. Open the timepicker component
  7. Component is in in light mode -> but should be dark

Link to public reproduction project repository

https://github.com/NiekRossenInfoSupport/maui-app

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

iOS, Android, Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@NiekRossenInfoSupport NiekRossenInfoSupport added the t/bug Something isn't working label Apr 25, 2024
@jsuarezruiz jsuarezruiz added area-xaml XAML, CSS, Triggers, Behaviors platform/windows 🪟 labels Apr 25, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Apr 26, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

Verified this issue with Visual Studio 17.10.0 Preview 5(8.0.14&8.0.7). Can repro on all platforms.

@Equabyte
Copy link

Equabyte commented May 2, 2024

See also my comment to #6094.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-xaml XAML, CSS, Triggers, Behaviors 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