1
0

qml: styling CloseChannelDialog, InvoiceDialog

This commit is contained in:
Sander van Grieken
2023-02-14 12:32:33 +01:00
parent 995754e523
commit 2b0e624876
3 changed files with 11 additions and 11 deletions

View File

@@ -62,6 +62,15 @@ ElDialog {
text: channeldetails.name text: channeldetails.name
} }
Label {
text: qsTr('Short channel ID')
color: Material.accentColor
}
Label {
text: channeldetails.short_cid
}
Label { Label {
text: qsTr('Remote node ID') text: qsTr('Remote node ID')
Layout.columnSpan: 2 Layout.columnSpan: 2
@@ -82,20 +91,12 @@ ElDialog {
} }
} }
Label {
text: qsTr('Short channel ID')
color: Material.accentColor
}
Label {
text: channeldetails.short_cid
}
Item { Layout.preferredHeight: constants.paddingMedium; Layout.preferredWidth: 1; Layout.columnSpan: 2 } Item { Layout.preferredHeight: constants.paddingMedium; Layout.preferredWidth: 1; Layout.columnSpan: 2 }
InfoTextArea { InfoTextArea {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.fillWidth: true Layout.fillWidth: true
Layout.bottomMargin: constants.paddingLarge
text: channeldetails.message_force_close text: channeldetails.message_force_close
} }

View File

@@ -53,7 +53,6 @@ ElDialog {
InfoTextArea { InfoTextArea {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.fillWidth: true Layout.fillWidth: true
Layout.topMargin: constants.paddingLarge
Layout.bottomMargin: constants.paddingLarge Layout.bottomMargin: constants.paddingLarge
visible: invoice.userinfo visible: invoice.userinfo
text: invoice.userinfo text: invoice.userinfo

View File

@@ -154,7 +154,7 @@ class QEChannelDetails(QObject, QtEventListener):
@pyqtProperty(str, notify=channelChanged) @pyqtProperty(str, notify=channelChanged)
def message_force_close(self, notify=channelChanged): def message_force_close(self, notify=channelChanged):
return _(messages.MSG_REQUEST_FORCE_CLOSE) return _(messages.MSG_REQUEST_FORCE_CLOSE).strip()
@pyqtProperty(bool, notify=channelChanged) @pyqtProperty(bool, notify=channelChanged)
def isBackup(self): def isBackup(self):