optimizations and visible fixes

This commit is contained in:
Rikard Braathen 2020-05-27 10:01:32 +02:00
parent 6777dda82c
commit ff0a6ab745
No known key found for this signature in database
GPG Key ID: BB568D1A81F6A965
3 changed files with 8 additions and 16 deletions

View File

@ -89,7 +89,7 @@ Flickable {
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
id: rememberPasswordCheckBox
text: qsTr("Remember password")
description: qsTr("Don't ask agan on this device.")
description: qsTr("Don't ask again on this device.")
KeyNavigation.backtab: passwordField.textField
KeyNavigation.tab: unlockBtn
Layout.bottomMargin: 32

View File

@ -18,32 +18,24 @@ Pane {
Layout.fillWidth: true
Layout.maximumWidth: dynamicWidth + dynamicMargin
spacing: 0
Layout.margins: 0
visible: {
if (toolBar.searchField.text.length > 0) {
for (var i = 0; i < children.length; ++i) {
if (!!children[i] && children[i].toString().startsWith("SettingsPanel") && children[i].visible) {
return true
}
}
return false
}
return true
}
topPadding: 0
bottomPadding: 0
ColumnLayout {
anchors.horizontalCenter: parent.horizontalCenter
width: app.width - dynamicMargin < dynamicWidth ? app.width - dynamicMargin : dynamicWidth
width: parent.width
spacing: 8
RowLayout {
Label {
id: containerLabel
visible: inner_space.visibleChildren.length > 1
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
text: title
color: Material.primary
font.pixelSize: 14
font.weight: Font.Medium
topPadding: 8
topPadding: 24
bottomPadding: 8
Layout.fillWidth: true
}

View File

@ -89,7 +89,7 @@ Pane {
anchors.horizontalCenter: parent.horizontalCenter
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
width: parent.width - dynamicMargin < dynamicWidth ? parent.width - dynamicMargin : dynamicWidth
width: parent.width - dynamicMargin
spacing: 16
RowLayout {