commit 1adde4c54aea2fbc71dedb93b51b7a24d1563a8f
parent 6cf79dcfb299420afa4c45fd4a03d3187bb484fe
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 3 Mar 2021 11:20:24 +0100
qt channels_list: use monospace font for channel capacity
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py
@@ -87,7 +87,7 @@ class ChannelsList(MyTreeView):
closed = chan.is_closed()
node_alias = self.lnworker.get_node_alias(chan.node_id) or chan.node_id.hex()
if isinstance(chan, Channel):
- capacity_str = self.parent.format_amount(chan.constraints.capacity)
+ capacity_str = self.parent.format_amount(chan.constraints.capacity, whitespaces=True)
else:
capacity_str = ''
return {
@@ -268,6 +268,7 @@ class ChannelsList(MyTreeView):
items[self.Columns.NODE_ALIAS].setFont(QFont(MONOSPACE_FONT))
items[self.Columns.LOCAL_BALANCE].setFont(QFont(MONOSPACE_FONT))
items[self.Columns.REMOTE_BALANCE].setFont(QFont(MONOSPACE_FONT))
+ items[self.Columns.CAPACITY].setFont(QFont(MONOSPACE_FONT))
self._update_chan_frozen_bg(chan=chan, items=items)
self.model().insertRow(0, items)