Fixed checkbox (switch) colors

This commit is contained in:
Viktor De Pasquale 2019-11-28 18:58:04 +01:00
parent 73c4b21285
commit 627b40799c
3 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorPrimary" android:state_checked="true" />
<item android:color="?colorDisabled" />
</selector>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorDisabled" android:state_enabled="false" /> <item android:color="?colorDisabled" android:state_enabled="false" />
<item android:color="?colorSecondary" android:state_checked="false" />
<item android:color="?colorPrimary" /> <item android:color="?colorPrimary" />
</selector> </selector>

View File

@ -200,7 +200,7 @@
<style name="WidgetFoundation.Switch" parent="Widget.AppCompat.CompoundButton.Switch"> <style name="WidgetFoundation.Switch" parent="Widget.AppCompat.CompoundButton.Switch">
<item name="thumbTint">@color/color_primary_transient</item> <item name="thumbTint">@color/color_checkbox_primary</item>
</style> </style>
</resources> </resources>