-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Picker text colour not changing with theme #23760
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Hi, @kycuff in your repo you're setting the
|
@kubaflo both are being set in our codebase. Can confirm setting But does not work when set to a dynamic resource 2024-07-29.17-42-18.mp4
|
@kubaflo have found a workaround, that may help someone diagnose/ fix the bug. As a workaround, I have found that even with the dynamic resources set, it does switch colour with Android theme changes. In styles.xml, I have 2 themes - <?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="Dark" parent="Theme.MaterialComponents">
*************
</style>
<style name="Light" parent="Theme.MaterialComponents.Light">
*************
</style>
</resources> Then switching between them when the user changes the theme - Platform.CurrentActivity?.SetTheme(theme == ThemeEnum.Light ? Resource.Style.Light : Resource.Style.Dark); |
Description
When changing an app theme via the ResourceDictionary the colour of the picker text is not changing
As can be seen in the video, the date and time pickers appear to be working.
2024-07-22.16-30-43.mp4
Issue appears to be just Android as iOS is working as expected.
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/kycuff/PickerThemeTestApp
Version with bug
8.0.61 SR6.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: