qml: additional styling InfoTextArea in dialogs
This commit is contained in:
@@ -295,6 +295,8 @@ ElDialog {
|
||||
id: maxAmountMessage
|
||||
visible: amountMax.checked && text
|
||||
compact: true
|
||||
backgroundColor: constants.darkerDialogBackground
|
||||
|
||||
Connections {
|
||||
target: invoice
|
||||
function onMaxAmountMessage(message) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user