mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-29 13:00:17 +02:00
fix(appearance): switch color
This commit is contained in:
parent
2543961778
commit
09ab95199d
@ -36,14 +36,10 @@ object ViewAppearanceHelper {
|
|||||||
view.setBackgroundColor(0)
|
view.setBackgroundColor(0)
|
||||||
}
|
}
|
||||||
if (view is Switch) {
|
if (view is Switch) {
|
||||||
//set the switch color to blue
|
|
||||||
val colorStateList = ColorStateList(
|
val colorStateList = ColorStateList(
|
||||||
arrayOf(
|
arrayOf(intArrayOf(-android.R.attr.state_checked), intArrayOf(android.R.attr.state_checked)
|
||||||
intArrayOf(-android.R.attr.state_checked), intArrayOf(
|
|
||||||
android.R.attr.state_checked
|
|
||||||
)
|
|
||||||
), intArrayOf(
|
), intArrayOf(
|
||||||
Color.parseColor("#000000"),
|
Color.parseColor("#3d3d3d"),
|
||||||
Color.parseColor("#2196F3")
|
Color.parseColor("#2196F3")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user