Browse Source

qml: styling CloseChannelDialog, InvoiceDialog

master
Sander van Grieken 3 years ago
parent
commit
2b0e624876
  1. 19
      electrum/gui/qml/components/CloseChannelDialog.qml
  2. 1
      electrum/gui/qml/components/InvoiceDialog.qml
  3. 2
      electrum/gui/qml/qechanneldetails.py

19
electrum/gui/qml/components/CloseChannelDialog.qml

@ -62,6 +62,15 @@ ElDialog {
text: channeldetails.name
}
Label {
text: qsTr('Short channel ID')
color: Material.accentColor
}
Label {
text: channeldetails.short_cid
}
Label {
text: qsTr('Remote node ID')
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 }
InfoTextArea {
Layout.columnSpan: 2
Layout.fillWidth: true
Layout.bottomMargin: constants.paddingLarge
text: channeldetails.message_force_close
}

1
electrum/gui/qml/components/InvoiceDialog.qml

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

2
electrum/gui/qml/qechanneldetails.py

@ -154,7 +154,7 @@ class QEChannelDetails(QObject, QtEventListener):
@pyqtProperty(str, 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)
def isBackup(self):

Loading…
Cancel
Save