add styling with animation speed
This commit is contained in:
parent
f7e8fb7720
commit
9fc91a92f7
14 changed files with 74 additions and 37 deletions
|
|
@ -40,14 +40,13 @@ Switch {
|
|||
y: parent.height / 2 - height / 2
|
||||
Behavior on x {
|
||||
NumberAnimation {
|
||||
duration: 100
|
||||
duration: Styling.animations.speed.fast
|
||||
}
|
||||
}
|
||||
width: parent.width / 2 - indicator.padding
|
||||
height: parent.height - indicator.padding
|
||||
radius: 16
|
||||
color: control.checked ? Theme.palette.primary : Theme.palette.basecontent
|
||||
// border.color: control.checked ? (control.down ? "#17a81a" : "#21be2b") : "#999999"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue