Fixed checkbox (switch) colors
This commit is contained in:
parent
73c4b21285
commit
627b40799c
5
app/src/main/res/color/color_checkbox_primary.xml
Normal file
5
app/src/main/res/color/color_checkbox_primary.xml
Normal 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>
|
@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:color="?colorDisabled" android:state_enabled="false" />
|
||||
<item android:color="?colorSecondary" android:state_checked="false" />
|
||||
<item android:color="?colorPrimary" />
|
||||
</selector>
|
@ -200,7 +200,7 @@
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user