Skip to content

Commit

Permalink
qml: styling CloseChannelDialog, InvoiceDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
accumulator committed Feb 14, 2023
1 parent 995754e commit 2b0e624
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
19 changes: 10 additions & 9 deletions electrum/gui/qml/components/CloseChannelDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down
1 change: 0 additions & 1 deletion electrum/gui/qml/components/InvoiceDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion electrum/gui/qml/qechanneldetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def canDelete(self):

@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):
Expand Down

0 comments on commit 2b0e624

Please sign in to comment.