mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-28 12:30:12 +02:00
fix(appearance): switch color
This commit is contained in:
parent
2543961778
commit
09ab95199d
@ -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")
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user