qml: additional styling InfoTextArea in dialogs
What changed, and why it matters
This commit is purely a user-interface styling update. It changes the background color of informational message boxes in several Electrum mobile/QML dialogs and wraps one button in a layout container. There is no security relevance.
No security action needed. This is a cosmetic UI change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies four QML files under electrum/gui/qml/components. In InvoiceDialog.qml, LnurlPayRequestDialog.qml, LnurlWithdrawRequestDialog.qml, and OpenChannelDialog.qml, it adds backgroundColor: constants.darkerDialogBackground to InfoTextArea elements. OpenChannelDialog.qml additionally replaces a standalone FlatButton with a DialogButtonContainer wrapping the same FlatButton. No logic, validation, cryptography, networking, or data-handling code is changed.
Changed components
electrum/gui/qml/components/InvoiceDialog.qmlelectrum/gui/qml/components/LnurlPayRequestDialog.qmlelectrum/gui/qml/components/LnurlWithdrawRequestDialog.qmlelectrum/gui/qml/components/OpenChannelDialog.qmlInspect captured patch +18 / −8
diff --git a/electrum/gui/qml/components/InvoiceDialog.qml b/electrum/gui/qml/components/InvoiceDialog.qml
index f2edb0f..2a91e58 100644
--- a/electrum/gui/qml/components/InvoiceDialog.qml
+++ b/electrum/gui/qml/components/InvoiceDialog.qml
@@ -295,6 +295,8 @@ ElDialog {
id: maxAmountMessage
visible: amountMax.checked && text
compact: true
+ backgroundColor: constants.darkerDialogBackground
+
Connections {
target: invoice
function onMaxAmountMessage(message) {
diff --git a/electrum/gui/qml/components/LnurlPayRequestDialog.qml b/electrum/gui/qml/components/LnurlPayRequestDialog.qml
index 195eea3..da2a9f8 100644
--- a/electrum/gui/qml/components/LnurlPayRequestDialog.qml
+++ b/electrum/gui/qml/components/LnurlPayRequestDialog.qml
@@ -43,6 +43,7 @@ ElDialog {
compact: true
visible: invoiceParser.lnurlData['min_sendable_sat'] != invoiceParser.lnurlData['max_sendable_sat']
text: qsTr('Amount must be between %1 and %2 %3').arg(Config.formatSats(invoiceParser.lnurlData['min_sendable_sat'])).arg(Config.formatSats(invoiceParser.lnurlData['max_sendable_sat'])).arg(Config.baseUnit)
+ backgroundColor: constants.darkerDialogBackground
}
Label {
diff --git a/electrum/gui/qml/components/LnurlWithdrawRequestDialog.qml b/electrum/gui/qml/components/LnurlWithdrawRequestDialog.qml
index 4e047e5..e68c384 100644
--- a/electrum/gui/qml/components/LnurlWithdrawRequestDialog.qml
+++ b/electrum/gui/qml/components/LnurlWithdrawRequestDialog.qml
@@ -76,6 +76,7 @@ ElDialog {
+ '\n\n'
+ qsTr('Do a submarine swap in the \'Channels\' tab to get more incoming liquidity.')
iconStyle: InfoTextArea.IconStyle.Error
+ backgroundColor: constants.darkerDialogBackground
}
InfoTextArea {
@@ -84,9 +85,10 @@ ElDialog {
compact: true
visible: !dialog.insufficientLiquidity && dialog.providerMinWithdrawable != dialog.providerMaxWithdrawable
text: qsTr('Amount must be between %1 and %2 %3')
- .arg(Config.formatSats(dialog.effectiveMinWithdrawable))
- .arg(Config.formatSats(dialog.effectiveMaxWithdrawable))
- .arg(Config.baseUnit)
+ .arg(Config.formatSats(dialog.effectiveMinWithdrawable))
+ .arg(Config.formatSats(dialog.effectiveMaxWithdrawable))
+ .arg(Config.baseUnit)
+ backgroundColor: constants.darkerDialogBackground
}
InfoTextArea {
@@ -100,6 +102,7 @@ ElDialog {
+ ' '
+ qsTr('You may need to do a submarine swap to increase your incoming liquidity.')
iconStyle: InfoTextArea.IconStyle.Warn
+ backgroundColor: constants.darkerDialogBackground
}
Label {
diff --git a/electrum/gui/qml/components/OpenChannelDialog.qml b/electrum/gui/qml/components/OpenChannelDialog.qml
index 4315510..a9b6f3d 100644
--- a/electrum/gui/qml/components/OpenChannelDialog.qml
+++ b/electrum/gui/qml/components/OpenChannelDialog.qml
@@ -234,17 +234,21 @@ ElDialog {
text: channelopener.warning
visible: text
compact: true
+ backgroundColor: constants.darkerDialogBackground
}
}
}
- FlatButton {
+ DialogButtonContainer {
Layout.fillWidth: true
- text: qsTr('Open Channel...')
- icon.source: '../../icons/confirmed.png'
- enabled: channelopener.valid
- onClicked: channelopener.openChannel()
+ FlatButton {
+ Layout.fillWidth: true
+ text: qsTr('Open Channel...')
+ icon.source: '../../icons/confirmed.png'
+ enabled: channelopener.valid
+ onClicked: channelopener.openChannel()
+ }
}
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.