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"?>
|
<?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>
|
@ -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>
|
Loading…
Reference in New Issue
Block a user