Compare commits

..

No commits in common. "8ee0f00ce508f965b18eeb7479b3683c3916cd49" and "2020c102f3d1316d3c4f4c7f5f65b0e9215fe1f6" have entirely different histories.

2 changed files with 11 additions and 13 deletions

View file

@ -6,13 +6,13 @@ Switch {
id: control id: control
indicator: Item { indicator: Item {
implicitWidth: 48 implicitWidth: 48
implicitHeight: 22 implicitHeight: 26
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: 6 radius: 8
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: 22 width: 26
height: 22 height: 26
radius: 6 radius: 8
color: Theme.palette.basecontent color: Theme.palette.basecontent
} }
} }

View file

@ -26,7 +26,12 @@ StyledWindow {
id: rect id: rect
color: Theme.palette.base300 color: Theme.palette.base300
margin: 48 implicitWidth: 800
implicitHeight: 1200
leftMargin: 48
rightMargin: 48
topMargin: 24
bottomMargin: 24
radius: 8 radius: 8
HyprlandFocusGrab { HyprlandFocusGrab {
@ -41,13 +46,6 @@ 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"