fixed roomsettings spacing and toggle button right align bug

This commit is contained in:
Jedi18 2021-02-16 22:22:55 +05:30
parent 8c4f0a070e
commit f76f7b7f8a
2 changed files with 17 additions and 2 deletions

View File

@ -121,9 +121,11 @@ ApplicationWindow {
GridLayout {
columns: 2
rowSpacing: 10
MatrixText {
text: "SETTINGS"
font.bold: true
}
Item {
@ -220,8 +222,19 @@ ApplicationWindow {
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 {
text: "INFO"
font.bold: true
}
Item {
@ -234,7 +247,7 @@ ApplicationWindow {
MatrixText {
text: roomSettings.roomId
font.pixelSize: 12
font.pixelSize: 14
Layout.alignment: Qt.AlignRight
}
@ -244,7 +257,7 @@ ApplicationWindow {
MatrixText {
text: roomSettings.roomVersion
font.pixelSize: 12
font.pixelSize: 14
Layout.alignment: Qt.AlignRight
}
}

View File

@ -5,8 +5,10 @@ import im.nheko 1.0
Switch {
id: toggleButton
implicitWidth: indicatorItem.width
indicator: Item {
id: indicatorItem
implicitWidth: 48
implicitHeight: 24
y: parent.height / 2 - height / 2