add styling with animation speed

This commit is contained in:
Benjamin Palko 2025-09-05 15:48:24 -04:00
parent f7e8fb7720
commit 9fc91a92f7
14 changed files with 74 additions and 37 deletions

View file

@ -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"
}
}