less chonky

This commit is contained in:
Benjamin Palko 2025-08-27 12:59:28 -04:00
parent e950be7156
commit 8ee0f00ce5

View file

@ -6,13 +6,13 @@ Switch {
id: control id: control
indicator: Item { indicator: Item {
implicitWidth: 48 implicitWidth: 48
implicitHeight: 26 implicitHeight: 22
Rectangle { Rectangle {
implicitWidth: parent.width implicitWidth: parent.width
implicitHeight: parent.height - 4 implicitHeight: parent.height - 4
x: control.leftPadding x: control.leftPadding
y: parent.height / 2 - height / 2 y: parent.height / 2 - height / 2
radius: 8 radius: 6
color: control.checked ? Theme.palette.primary : Theme.palette.base100 color: control.checked ? Theme.palette.primary : Theme.palette.base100
Behavior on color { Behavior on color {
ColorAnimation { ColorAnimation {
@ -29,9 +29,9 @@ Switch {
duration: 150 duration: 150
} }
} }
width: 26 width: 22
height: 26 height: 22
radius: 8 radius: 6
color: Theme.palette.basecontent color: Theme.palette.basecontent
} }
} }