Compare commits
2 commits
2020c102f3
...
8ee0f00ce5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ee0f00ce5 | ||
|
|
e950be7156 |
2 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue