Browse Source

qml: styling fixes

master
Sander van Grieken 3 years ago
parent
commit
e31bd958d3
  1. 2
      electrum/gui/qml/components/OpenWalletDialog.qml
  2. 4
      electrum/gui/qml/components/ReceiveDialog.qml
  3. 1
      electrum/gui/qml/components/SendDialog.qml

2
electrum/gui/qml/components/OpenWalletDialog.qml

@ -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

4
electrum/gui/qml/components/ReceiveDialog.qml

@ -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 {

1
electrum/gui/qml/components/SendDialog.qml

@ -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 {

Loading…
Cancel
Save