1
0

qml: styling fixes

This commit is contained in:
Sander van Grieken
2023-01-03 18:22:15 +01:00
parent 2e06a7992e
commit e31bd958d3
3 changed files with 3 additions and 4 deletions

View File

@@ -44,6 +44,7 @@ ElDialog {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: passwordLayout.width Layout.preferredWidth: passwordLayout.width
Layout.preferredHeight: notice.height Layout.preferredHeight: notice.height
InfoTextArea { InfoTextArea {
id: notice id: notice
text: qsTr("Wallet requires password to unlock") text: qsTr("Wallet requires password to unlock")
@@ -56,7 +57,6 @@ ElDialog {
RowLayout { RowLayout {
id: passwordLayout id: passwordLayout
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.maximumWidth: parent.width * 2/3
Label { Label {
text: qsTr('Password') text: qsTr('Password')
visible: wallet_db.needsPassword visible: wallet_db.needsPassword

View File

@@ -76,8 +76,6 @@ ElDialog {
Layout.topMargin: constants.paddingSmall Layout.topMargin: constants.paddingSmall
Layout.bottomMargin: constants.paddingSmall Layout.bottomMargin: constants.paddingSmall
// Layout.preferredWidth: qrloader.width
// Layout.preferredHeight: qrloader.height
Layout.preferredWidth: dialog.width * 7/8 Layout.preferredWidth: dialog.width * 7/8
Layout.preferredHeight: dialog.width * 7/8 Layout.preferredHeight: dialog.width * 7/8
@@ -189,7 +187,7 @@ ElDialog {
GridLayout { GridLayout {
columns: 2 columns: 2
visible: request.message || !request.amount.isEmpty visible: request.message || !request.amount.isEmpty
Layout.maximumWidth: qrloader.width Layout.maximumWidth: buttons.width
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Label { Label {

View File

@@ -95,6 +95,7 @@ ElDialog {
Label { Label {
text: 'Enter a bitcoin address or a Lightning invoice' text: 'Enter a bitcoin address or a Lightning invoice'
wrapMode: Text.Wrap wrapMode: Text.Wrap
Layout.maximumWidth: parent.width
} }
TextField { TextField {