Browse Source

qml: ElDialog now defaults to parent on Overlay.overlay

This was replicated in basically all ElDialog derived dialogs
master
Sander van Grieken 3 years ago
parent
commit
677e1259df
  1. 6
      electrum/gui/qml/components/ChannelOpenProgressDialog.qml
  2. 5
      electrum/gui/qml/components/CloseChannelDialog.qml
  3. 6
      electrum/gui/qml/components/ConfirmTxDialog.qml
  4. 6
      electrum/gui/qml/components/CpfpBumpFeeDialog.qml
  5. 11
      electrum/gui/qml/components/ExceptionDialog.qml
  6. 7
      electrum/gui/qml/components/ExportTxDialog.qml
  7. 7
      electrum/gui/qml/components/GenericShareDialog.qml
  8. 6
      electrum/gui/qml/components/ImportAddressesKeysDialog.qml
  9. 5
      electrum/gui/qml/components/ImportChannelBackupDialog.qml
  10. 6
      electrum/gui/qml/components/InvoiceDialog.qml
  11. 6
      electrum/gui/qml/components/LightningPaymentProgressDialog.qml
  12. 6
      electrum/gui/qml/components/LnurlPayRequestDialog.qml
  13. 4
      electrum/gui/qml/components/LoadingWalletDialog.qml
  14. 8
      electrum/gui/qml/components/MessageDialog.qml
  15. 6
      electrum/gui/qml/components/OpenChannelDialog.qml
  16. 6
      electrum/gui/qml/components/OpenWalletDialog.qml
  17. 6
      electrum/gui/qml/components/OtpDialog.qml
  18. 7
      electrum/gui/qml/components/PasswordDialog.qml
  19. 2
      electrum/gui/qml/components/Pin.qml
  20. 7
      electrum/gui/qml/components/ProxyConfigDialog.qml
  21. 6
      electrum/gui/qml/components/RbfBumpFeeDialog.qml
  22. 6
      electrum/gui/qml/components/RbfCancelDialog.qml
  23. 7
      electrum/gui/qml/components/ReceiveDetailsDialog.qml
  24. 6
      electrum/gui/qml/components/ReceiveDialog.qml
  25. 7
      electrum/gui/qml/components/SendDialog.qml
  26. 7
      electrum/gui/qml/components/ServerConfigDialog.qml
  27. 6
      electrum/gui/qml/components/SwapDialog.qml
  28. 6
      electrum/gui/qml/components/SwapProgressDialog.qml
  29. 6
      electrum/gui/qml/components/controls/ElDialog.qml
  30. 2
      electrum/gui/qml/components/wizard/Wizard.qml

6
electrum/gui/qml/components/ChannelOpenProgressDialog.qml

@ -16,12 +16,6 @@ ElDialog {
allowClose: false
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
property alias state: s.state
property alias error: errorText.text
property alias info: infoText.text

5
electrum/gui/qml/components/CloseChannelDialog.qml

@ -18,11 +18,6 @@ ElDialog {
title: qsTr('Close Channel')
iconSource: Qt.resolvedUrl('../../icons/lightning_disconnected.png')
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
property bool _closing: false
closePolicy: Popup.NoAutoClose

6
electrum/gui/qml/components/ConfirmTxDialog.qml

@ -30,12 +30,6 @@ ElDialog {
height: parent.height
padding: 0
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
function updateAmountText() {
btcValue.text = Config.formatSats(finalizer.effectiveAmount, false)
fiatValue.text = Daemon.fx.enabled

6
electrum/gui/qml/components/CpfpBumpFeeDialog.qml

@ -22,12 +22,6 @@ ElDialog {
height: parent.height
padding: 0
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
ColumnLayout {
anchors.fill: parent
spacing: 0

11
electrum/gui/qml/components/ExceptionDialog.qml

@ -15,12 +15,6 @@ ElDialog
property bool _sending: false
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
width: parent.width
height: parent.height
@ -113,11 +107,6 @@ ElDialog
property string reportText
z: 3000
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
width: parent.width
height: parent.height

7
electrum/gui/qml/components/ExportTxDialog.qml

@ -17,16 +17,9 @@ ElDialog {
title: qsTr('Share Transaction')
parent: Overlay.overlay
modal: true
width: parent.width
height: parent.height
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {

7
electrum/gui/qml/components/GenericShareDialog.qml

@ -15,16 +15,9 @@ ElDialog {
title: ''
parent: Overlay.overlay
modal: true
width: parent.width
height: parent.height
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {

6
electrum/gui/qml/components/ImportAddressesKeysDialog.qml

@ -15,12 +15,6 @@ ElDialog {
property bool valid: false
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
width: parent.width
height: parent.height

5
electrum/gui/qml/components/ImportChannelBackupDialog.qml

@ -11,11 +11,6 @@ ElDialog {
property bool valid: false
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
width: parent.width
height: parent.height

6
electrum/gui/qml/components/InvoiceDialog.qml

@ -21,12 +21,6 @@ ElDialog {
padding: 0
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
property bool _canMax: invoice.invoiceType == Invoice.OnchainInvoice
ColumnLayout {

6
electrum/gui/qml/components/LightningPaymentProgressDialog.qml

@ -17,12 +17,6 @@ ElDialog {
title: qsTr('Paying Lightning Invoice...')
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
Item {
id: s
state: ''

6
electrum/gui/qml/components/LnurlPayRequestDialog.qml

@ -15,12 +15,6 @@ ElDialog {
property InvoiceParser invoiceParser
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
property bool valid: comment.text.length <= invoiceParser.lnurlData['comment_allowed']

4
electrum/gui/qml/components/LoadingWalletDialog.qml

@ -13,11 +13,7 @@ ElDialog {
title: qsTr('Loading Wallet')
iconSource: Qt.resolvedUrl('../../icons/wallet.png')
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
x: Math.floor((parent.width - implicitWidth) / 2)
y: Math.floor((parent.height - implicitHeight) / 2)

8
electrum/gui/qml/components/MessageDialog.qml

@ -18,16 +18,10 @@ ElDialog {
signal yesClicked
parent: Overlay.overlay
modal: true
z: 1 // raise z so it also covers dialogs using overlay as parent
anchors.centerIn: parent
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {
@ -36,7 +30,7 @@ ElDialog {
Layout.alignment: Qt.AlignHCenter
TextArea {
id: message
Layout.preferredWidth: Overlay.overlay.width *2/3
Layout.preferredWidth: dialog.parent.width * 2/3
readOnly: true
wrapMode: TextInput.WordWrap
textFormat: richText ? TextEdit.RichText : TextEdit.PlainText

6
electrum/gui/qml/components/OpenChannelDialog.qml

@ -13,17 +13,11 @@ ElDialog {
title: qsTr("Open Lightning Channel")
iconSource: Qt.resolvedUrl('../../icons/lightning.png')
parent: Overlay.overlay
modal: true
padding: 0
width: parent.width
height: parent.height
Overlay.modal: Rectangle {
color: "#aa000000"
}
ColumnLayout {
anchors.fill: parent
spacing: 0

6
electrum/gui/qml/components/OpenWalletDialog.qml

@ -18,12 +18,6 @@ ElDialog {
title: qsTr('Open Wallet')
iconSource: Qt.resolvedUrl('../../icons/wallet.png')
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
focus: true
width: parent.width * 4/5

6
electrum/gui/qml/components/OtpDialog.qml

@ -18,12 +18,6 @@ ElDialog {
property bool _waiting: false
property string _otpError
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
focus: true
ColumnLayout {

7
electrum/gui/qml/components/PasswordDialog.qml

@ -17,17 +17,10 @@ ElDialog {
property string password
property string infotext
parent: Overlay.overlay
modal: true
anchors.centerIn: parent
width: parent.width * 4/5
padding: 0
Overlay.modal: Rectangle {
color: "#aa000000"
}
ColumnLayout {
id: rootLayout
width: parent.width

2
electrum/gui/qml/components/Pin.qml

@ -17,8 +17,6 @@ ElDialog {
anchors.centerIn: parent
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: canCancel ? "#aa000000" : "#ff000000"
}

7
electrum/gui/qml/components/ProxyConfigDialog.qml

@ -12,16 +12,9 @@ ElDialog {
title: qsTr('Proxy settings')
parent: Overlay.overlay
modal: true
width: parent.width
height: parent.height
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {

6
electrum/gui/qml/components/RbfBumpFeeDialog.qml

@ -22,12 +22,6 @@ ElDialog {
height: parent.height
padding: 0
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
ColumnLayout {
anchors.fill: parent
spacing: 0

6
electrum/gui/qml/components/RbfCancelDialog.qml

@ -21,12 +21,6 @@ ElDialog {
height: parent.height
padding: 0
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
ColumnLayout {
anchors.fill: parent
spacing: 0

7
electrum/gui/qml/components/ReceiveDetailsDialog.qml

@ -17,13 +17,6 @@ ElDialog {
property alias description: message.text
property alias expiry: expires.currentValue
parent: Overlay.overlay
modal: true
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {

6
electrum/gui/qml/components/ReceiveDialog.qml

@ -23,14 +23,8 @@ ElDialog {
property bool _ispaid: false
parent: Overlay.overlay
modal: true
iconSource: Qt.resolvedUrl('../../icons/tab_receive.png')
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {

7
electrum/gui/qml/components/SendDialog.qml

@ -15,13 +15,6 @@ ElDialog {
signal txFound(data: string)
signal channelBackupFound(data: string)
parent: Overlay.overlay
modal: true
Overlay.modal: Rectangle {
color: "#aa000000"
}
header: Item {}
padding: 0
topPadding: 0

7
electrum/gui/qml/components/ServerConfigDialog.qml

@ -12,16 +12,9 @@ ElDialog {
title: qsTr('Server settings')
parent: Overlay.overlay
modal: true
width: parent.width
height: parent.height
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {

6
electrum/gui/qml/components/SwapDialog.qml

@ -18,12 +18,6 @@ ElDialog {
title: qsTr('Lightning Swap')
iconSource: Qt.resolvedUrl('../../icons/update.png')
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
padding: 0
ColumnLayout {

6
electrum/gui/qml/components/SwapProgressDialog.qml

@ -20,12 +20,6 @@ ElDialog {
? qsTr('Reverse swap...')
: qsTr('Swap...')
modal: true
parent: Overlay.overlay
Overlay.modal: Rectangle {
color: "#aa000000"
}
Item {
id: s
state: ''

6
electrum/gui/qml/components/controls/ElDialog.qml

@ -12,6 +12,12 @@ Dialog {
close()
}
parent: Overlay.overlay
modal: true
Overlay.modal: Rectangle {
color: "#aa000000"
}
closePolicy: allowClose
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
: Popup.NoAutoClose

2
electrum/gui/qml/components/wizard/Wizard.qml

@ -6,11 +6,11 @@ import "../controls"
ElDialog {
id: wizard
modal: true
focus: true
width: parent.width
height: parent.height
padding: 0
title: wizardTitle + (pages.currentItem.title ? ' - ' + pages.currentItem.title : '')

Loading…
Cancel
Save