change default color

This commit is contained in:
王劲鹏 2021-05-27 18:06:43 +08:00 committed by osborn
parent aa030a4fb9
commit b6033d6eb6

View File

@ -10,8 +10,8 @@ Switch {
property var tag: "Switch"
property var offTintColor: "#42000000"
property var onTintColor: "#00ff00"
property var offTintColor: "#e6e6e6"
property var onTintColor: "#52d769"
property var thumbTintColor: "white"
Component.onCompleted: {
@ -23,9 +23,6 @@ Switch {
}
onCheckedChanged: {
console.log(onTintColor)
console.log(offTintColor)
console.log(thumbTintColor)
if (checked) {
this.indicator.children[0].color = onTintColor
} else {