Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Palko
8ee0f00ce5 less chonky 2025-08-27 12:59:28 -04:00
Benjamin Palko
e950be7156 storybook title 2025-08-27 12:50:24 -04:00
2 changed files with 13 additions and 11 deletions

View file

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

View file

@ -26,12 +26,7 @@ StyledWindow {
id: rect
color: Theme.palette.base300
implicitWidth: 800
implicitHeight: 1200
leftMargin: 48
rightMargin: 48
topMargin: 24
bottomMargin: 24
margin: 48
radius: 8
HyprlandFocusGrab {
@ -46,6 +41,13 @@ StyledWindow {
spacing: 12
StyledText {
Layout.alignment: Qt.AlignHCenter
text: "Components"
font.pixelSize: 24
bottomPadding: 24
}
ColumnLayout {
StyledText {
text: "Switch"