fix(appearance): switch color

This commit is contained in:
rhunk 2023-05-20 23:07:06 +02:00
parent 2543961778
commit 09ab95199d

View File

@ -36,14 +36,10 @@ object ViewAppearanceHelper {
view.setBackgroundColor(0)
}
if (view is Switch) {
//set the switch color to blue
val colorStateList = ColorStateList(
arrayOf(
intArrayOf(-android.R.attr.state_checked), intArrayOf(
android.R.attr.state_checked
)
arrayOf(intArrayOf(-android.R.attr.state_checked), intArrayOf(android.R.attr.state_checked)
), intArrayOf(
Color.parseColor("#000000"),
Color.parseColor("#3d3d3d"),
Color.parseColor("#2196F3")
)
)