maui icon indicating copy to clipboard operation
maui copied to clipboard

DatePicker not respecting UserAppTheme

Open hayer opened this issue 1 year ago • 1 comments
trafficstars

Description

  1. DatePicker does not respect the UserAppTheme and still changes style if user goes to dark theme.

Steps to Reproduce

  1. Set UserAppTheme = AppTheme.Light
  2. Create a DatePicker
  3. Start with dark theme
  4. DatePicker displays using the dark theme instead of the light one.

Link to public reproduction project repository

No response

Version with bug

8.0.14 SR3.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

hayer avatar Apr 16 '24 11:04 hayer

Same here on both IOS and Android. When creating a new Maui app and setting the UserAppTheme to Light and my device OS theme to dark, the OS components: datepicker, keyboard, etc. will be displayed in the OS theme, in this case dark.

Lightnerr avatar Apr 16 '24 18:04 Lightnerr

Verified on VS 17.10.0 Preview 3.0(8.0.20). Repro on Android 14.0-API34 and iOS 17.2 with below Project:

21858.zip

image

XamlTest avatar Apr 17 '24 03:04 XamlTest

@hayer @Lightnerr @XamlTest does this work on 8.0.7 of MAUI?

PureWeen avatar Apr 23 '24 18:04 PureWeen

Hi @hayer. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@hayer @Lightnerr @XamlTest does this work on 8.0.7 of MAUI?

Im using the following versions, where it is still broken.

Installed Workload Id Manifest Version Installation Source

android 34.0.95/8.0.100 SDK 8.0.200, VS 17.9.34723.18 ios 17.2.8053/8.0.100 SDK 8.0.200, VS 17.9.34723.18 maui 8.0.7/8.0.100 SDK 8.0.200 wasm-tools-net7 8.0.4/8.0.100 VS 17.9.34723.18 maccatalyst 17.2.8053/8.0.100 VS 17.9.34723.18 maui-windows 8.0.7/8.0.100 VS 17.9.34723.18

NiekRossenInfoSupport avatar Apr 25 '24 14:04 NiekRossenInfoSupport

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.