change default color
This commit is contained in:
parent
aa030a4fb9
commit
b6033d6eb6
@ -10,8 +10,8 @@ Switch {
|
|||||||
|
|
||||||
property var tag: "Switch"
|
property var tag: "Switch"
|
||||||
|
|
||||||
property var offTintColor: "#42000000"
|
property var offTintColor: "#e6e6e6"
|
||||||
property var onTintColor: "#00ff00"
|
property var onTintColor: "#52d769"
|
||||||
property var thumbTintColor: "white"
|
property var thumbTintColor: "white"
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
@ -23,9 +23,6 @@ Switch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
console.log(onTintColor)
|
|
||||||
console.log(offTintColor)
|
|
||||||
console.log(thumbTintColor)
|
|
||||||
if (checked) {
|
if (checked) {
|
||||||
this.indicator.children[0].color = onTintColor
|
this.indicator.children[0].color = onTintColor
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user