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

View file

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