Compare commits
No commits in common. "8ee0f00ce508f965b18eeb7479b3683c3916cd49" and "2020c102f3d1316d3c4f4c7f5f65b0e9215fe1f6" have entirely different histories.
8ee0f00ce5
...
2020c102f3
2 changed files with 11 additions and 13 deletions
|
|
@ -6,13 +6,13 @@ Switch {
|
|||
id: control
|
||||
indicator: Item {
|
||||
implicitWidth: 48
|
||||
implicitHeight: 22
|
||||
implicitHeight: 26
|
||||
Rectangle {
|
||||
implicitWidth: parent.width
|
||||
implicitHeight: parent.height - 4
|
||||
x: control.leftPadding
|
||||
y: parent.height / 2 - height / 2
|
||||
radius: 6
|
||||
radius: 8
|
||||
color: control.checked ? Theme.palette.primary : Theme.palette.base100
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
|
|
@ -29,9 +29,9 @@ Switch {
|
|||
duration: 150
|
||||
}
|
||||
}
|
||||
width: 22
|
||||
height: 22
|
||||
radius: 6
|
||||
width: 26
|
||||
height: 26
|
||||
radius: 8
|
||||
color: Theme.palette.basecontent
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,12 @@ StyledWindow {
|
|||
id: rect
|
||||
|
||||
color: Theme.palette.base300
|
||||
margin: 48
|
||||
implicitWidth: 800
|
||||
implicitHeight: 1200
|
||||
leftMargin: 48
|
||||
rightMargin: 48
|
||||
topMargin: 24
|
||||
bottomMargin: 24
|
||||
radius: 8
|
||||
|
||||
HyprlandFocusGrab {
|
||||
|
|
@ -41,13 +46,6 @@ StyledWindow {
|
|||
|
||||
spacing: 12
|
||||
|
||||
StyledText {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: "Components"
|
||||
font.pixelSize: 24
|
||||
bottomPadding: 24
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
StyledText {
|
||||
text: "Switch"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue