Uno.Themes
Uno.Themes copied to clipboard
[Android] Extra setup for Uno.Material ToggleSwitch dark mode colors is not working
Current behavior
When completing step 2 of the Uno.Material extra setup for the ToggleSwitch style, the thumb tint color of the control stays the same for dark and light mode. Here's the documentation : https://github.com/unoplatform/uno/blob/master/doc/articles/features/uno-material-controls-extra-setup.md
Expected behavior
The MaterialPrimaryColor and MaterialSurfaceVariantColor defined in Resources/values-night/colors should appear as the thumb tint color of the ToggleSwitch when the app is in dark mode.
How to reproduce it (as minimally and precisely as possible)
-
Launch the repro on Android : ToggleSwitch.zip
-
Skip the onboarding pages.
-
Login with any email and password.
-
On the bottom bar, select the profile/settings section.
-
On the profile page, turn on the switch and notice the thumb tint color.
-
Click on the button "Toggle between themes" to switch to dark mode and notice that the thumb color tint is the same as in light mode. It should be the colors defined in Resources/values-night/colors.xml.
Environment
Nuget Package:
Package Version(s): Uno.Material : 1.3.3 Uno.UI : 4.2.6
Affected platform(s):
- [ ] iOS
- [x] Android
- [ ] WebAssembly
- [ ] UWP
- [ ] MacOS