mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
fixed roomsettings spacing and toggle button right align bug
This commit is contained in:
parent
8c4f0a070e
commit
f76f7b7f8a
2 changed files with 17 additions and 2 deletions
|
@ -121,9 +121,11 @@ ApplicationWindow {
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
columns: 2
|
columns: 2
|
||||||
|
rowSpacing: 10
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
text: "SETTINGS"
|
text: "SETTINGS"
|
||||||
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -220,8 +222,19 @@ ApplicationWindow {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
// for adding extra space between sections
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
// for adding extra space between sections
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
text: "INFO"
|
text: "INFO"
|
||||||
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
@ -234,7 +247,7 @@ ApplicationWindow {
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
text: roomSettings.roomId
|
text: roomSettings.roomId
|
||||||
font.pixelSize: 12
|
font.pixelSize: 14
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +257,7 @@ ApplicationWindow {
|
||||||
|
|
||||||
MatrixText {
|
MatrixText {
|
||||||
text: roomSettings.roomVersion
|
text: roomSettings.roomVersion
|
||||||
font.pixelSize: 12
|
font.pixelSize: 14
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,10 @@ import im.nheko 1.0
|
||||||
|
|
||||||
Switch {
|
Switch {
|
||||||
id: toggleButton
|
id: toggleButton
|
||||||
|
implicitWidth: indicatorItem.width
|
||||||
|
|
||||||
indicator: Item {
|
indicator: Item {
|
||||||
|
id: indicatorItem
|
||||||
implicitWidth: 48
|
implicitWidth: 48
|
||||||
implicitHeight: 24
|
implicitHeight: 24
|
||||||
y: parent.height / 2 - height / 2
|
y: parent.height / 2 - height / 2
|
||||||
|
|
Loading…
Reference in a new issue