qml: ElDialog now defaults to parent on Overlay.overlay
This was replicated in basically all ElDialog derived dialogs
This commit is contained in:
@@ -16,12 +16,6 @@ ElDialog {
|
|||||||
|
|
||||||
allowClose: false
|
allowClose: false
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
property alias state: s.state
|
property alias state: s.state
|
||||||
property alias error: errorText.text
|
property alias error: errorText.text
|
||||||
property alias info: infoText.text
|
property alias info: infoText.text
|
||||||
|
|||||||
@@ -18,11 +18,6 @@ ElDialog {
|
|||||||
title: qsTr('Close Channel')
|
title: qsTr('Close Channel')
|
||||||
iconSource: Qt.resolvedUrl('../../icons/lightning_disconnected.png')
|
iconSource: Qt.resolvedUrl('../../icons/lightning_disconnected.png')
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
property bool _closing: false
|
property bool _closing: false
|
||||||
|
|
||||||
closePolicy: Popup.NoAutoClose
|
closePolicy: Popup.NoAutoClose
|
||||||
|
|||||||
@@ -30,12 +30,6 @@ ElDialog {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateAmountText() {
|
function updateAmountText() {
|
||||||
btcValue.text = Config.formatSats(finalizer.effectiveAmount, false)
|
btcValue.text = Config.formatSats(finalizer.effectiveAmount, false)
|
||||||
fiatValue.text = Daemon.fx.enabled
|
fiatValue.text = Daemon.fx.enabled
|
||||||
|
|||||||
@@ -22,12 +22,6 @@ ElDialog {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|||||||
@@ -15,12 +15,6 @@ ElDialog
|
|||||||
|
|
||||||
property bool _sending: false
|
property bool _sending: false
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
@@ -113,11 +107,6 @@ ElDialog
|
|||||||
property string reportText
|
property string reportText
|
||||||
|
|
||||||
z: 3000
|
z: 3000
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|||||||
@@ -17,16 +17,9 @@ ElDialog {
|
|||||||
|
|
||||||
title: qsTr('Share Transaction')
|
title: qsTr('Share Transaction')
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -15,16 +15,9 @@ ElDialog {
|
|||||||
|
|
||||||
title: ''
|
title: ''
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -15,12 +15,6 @@ ElDialog {
|
|||||||
|
|
||||||
property bool valid: false
|
property bool valid: false
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,6 @@ ElDialog {
|
|||||||
|
|
||||||
property bool valid: false
|
property bool valid: false
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
|
|||||||
@@ -21,12 +21,6 @@ ElDialog {
|
|||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
property bool _canMax: invoice.invoiceType == Invoice.OnchainInvoice
|
property bool _canMax: invoice.invoiceType == Invoice.OnchainInvoice
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -17,12 +17,6 @@ ElDialog {
|
|||||||
|
|
||||||
title: qsTr('Paying Lightning Invoice...')
|
title: qsTr('Paying Lightning Invoice...')
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: s
|
id: s
|
||||||
state: ''
|
state: ''
|
||||||
|
|||||||
@@ -15,12 +15,6 @@ ElDialog {
|
|||||||
|
|
||||||
property InvoiceParser invoiceParser
|
property InvoiceParser invoiceParser
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
property bool valid: comment.text.length <= invoiceParser.lnurlData['comment_allowed']
|
property bool valid: comment.text.length <= invoiceParser.lnurlData['comment_allowed']
|
||||||
|
|||||||
@@ -13,11 +13,7 @@ ElDialog {
|
|||||||
title: qsTr('Loading Wallet')
|
title: qsTr('Loading Wallet')
|
||||||
iconSource: Qt.resolvedUrl('../../icons/wallet.png')
|
iconSource: Qt.resolvedUrl('../../icons/wallet.png')
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
parent: Overlay.overlay
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
x: Math.floor((parent.width - implicitWidth) / 2)
|
x: Math.floor((parent.width - implicitWidth) / 2)
|
||||||
y: Math.floor((parent.height - implicitHeight) / 2)
|
y: Math.floor((parent.height - implicitHeight) / 2)
|
||||||
|
|||||||
@@ -18,16 +18,10 @@ ElDialog {
|
|||||||
|
|
||||||
signal yesClicked
|
signal yesClicked
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
z: 1 // raise z so it also covers dialogs using overlay as parent
|
z: 1 // raise z so it also covers dialogs using overlay as parent
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@@ -36,7 +30,7 @@ ElDialog {
|
|||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
TextArea {
|
TextArea {
|
||||||
id: message
|
id: message
|
||||||
Layout.preferredWidth: Overlay.overlay.width *2/3
|
Layout.preferredWidth: dialog.parent.width * 2/3
|
||||||
readOnly: true
|
readOnly: true
|
||||||
wrapMode: TextInput.WordWrap
|
wrapMode: TextInput.WordWrap
|
||||||
textFormat: richText ? TextEdit.RichText : TextEdit.PlainText
|
textFormat: richText ? TextEdit.RichText : TextEdit.PlainText
|
||||||
|
|||||||
@@ -13,17 +13,11 @@ ElDialog {
|
|||||||
title: qsTr("Open Lightning Channel")
|
title: qsTr("Open Lightning Channel")
|
||||||
iconSource: Qt.resolvedUrl('../../icons/lightning.png')
|
iconSource: Qt.resolvedUrl('../../icons/lightning.png')
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|||||||
@@ -18,12 +18,6 @@ ElDialog {
|
|||||||
title: qsTr('Open Wallet')
|
title: qsTr('Open Wallet')
|
||||||
iconSource: Qt.resolvedUrl('../../icons/wallet.png')
|
iconSource: Qt.resolvedUrl('../../icons/wallet.png')
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
focus: true
|
focus: true
|
||||||
|
|
||||||
width: parent.width * 4/5
|
width: parent.width * 4/5
|
||||||
|
|||||||
@@ -18,12 +18,6 @@ ElDialog {
|
|||||||
property bool _waiting: false
|
property bool _waiting: false
|
||||||
property string _otpError
|
property string _otpError
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
focus: true
|
focus: true
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -17,17 +17,10 @@ ElDialog {
|
|||||||
property string password
|
property string password
|
||||||
property string infotext
|
property string infotext
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: parent.width * 4/5
|
width: parent.width * 4/5
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: rootLayout
|
id: rootLayout
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ ElDialog {
|
|||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
Overlay.modal: Rectangle {
|
||||||
color: canCancel ? "#aa000000" : "#ff000000"
|
color: canCancel ? "#aa000000" : "#ff000000"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,16 +12,9 @@ ElDialog {
|
|||||||
|
|
||||||
title: qsTr('Proxy settings')
|
title: qsTr('Proxy settings')
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -22,12 +22,6 @@ ElDialog {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|||||||
@@ -21,12 +21,6 @@ ElDialog {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|||||||
@@ -17,13 +17,6 @@ ElDialog {
|
|||||||
property alias description: message.text
|
property alias description: message.text
|
||||||
property alias expiry: expires.currentValue
|
property alias expiry: expires.currentValue
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -23,14 +23,8 @@ ElDialog {
|
|||||||
|
|
||||||
property bool _ispaid: false
|
property bool _ispaid: false
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
iconSource: Qt.resolvedUrl('../../icons/tab_receive.png')
|
iconSource: Qt.resolvedUrl('../../icons/tab_receive.png')
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -15,13 +15,6 @@ ElDialog {
|
|||||||
signal txFound(data: string)
|
signal txFound(data: string)
|
||||||
signal channelBackupFound(data: string)
|
signal channelBackupFound(data: string)
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
header: Item {}
|
header: Item {}
|
||||||
padding: 0
|
padding: 0
|
||||||
topPadding: 0
|
topPadding: 0
|
||||||
|
|||||||
@@ -12,16 +12,9 @@ ElDialog {
|
|||||||
|
|
||||||
title: qsTr('Server settings')
|
title: qsTr('Server settings')
|
||||||
|
|
||||||
parent: Overlay.overlay
|
|
||||||
modal: true
|
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -18,12 +18,6 @@ ElDialog {
|
|||||||
title: qsTr('Lightning Swap')
|
title: qsTr('Lightning Swap')
|
||||||
iconSource: Qt.resolvedUrl('../../icons/update.png')
|
iconSource: Qt.resolvedUrl('../../icons/update.png')
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
@@ -20,12 +20,6 @@ ElDialog {
|
|||||||
? qsTr('Reverse swap...')
|
? qsTr('Reverse swap...')
|
||||||
: qsTr('Swap...')
|
: qsTr('Swap...')
|
||||||
|
|
||||||
modal: true
|
|
||||||
parent: Overlay.overlay
|
|
||||||
Overlay.modal: Rectangle {
|
|
||||||
color: "#aa000000"
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: s
|
id: s
|
||||||
state: ''
|
state: ''
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ Dialog {
|
|||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parent: Overlay.overlay
|
||||||
|
modal: true
|
||||||
|
Overlay.modal: Rectangle {
|
||||||
|
color: "#aa000000"
|
||||||
|
}
|
||||||
|
|
||||||
closePolicy: allowClose
|
closePolicy: allowClose
|
||||||
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
? Popup.CloseOnEscape | Popup.CloseOnPressOutside
|
||||||
: Popup.NoAutoClose
|
: Popup.NoAutoClose
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ import "../controls"
|
|||||||
|
|
||||||
ElDialog {
|
ElDialog {
|
||||||
id: wizard
|
id: wizard
|
||||||
modal: true
|
|
||||||
focus: true
|
focus: true
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
title: wizardTitle + (pages.currentItem.title ? ' - ' + pages.currentItem.title : '')
|
title: wizardTitle + (pages.currentItem.title ? ' - ' + pages.currentItem.title : '')
|
||||||
|
|||||||
Reference in New Issue
Block a user