qml: styling CloseChannelDialog, InvoiceDialog
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user