1
0

Merge pull request #5768 from lukechilds/ln-negative-red

Show outgoing Lightning payments with red description
This commit is contained in:
ThomasV
2019-11-17 13:58:16 +01:00
committed by GitHub

View File

@@ -201,7 +201,7 @@ class HistoryModel(QAbstractItemModel, Logger):
# and self.parent.wallet.invoices.paid.get(tx_hash):
# return QVariant(read_QIcon("seal"))
elif col in (HistoryColumns.DESCRIPTION, HistoryColumns.AMOUNT) \
and role == Qt.ForegroundRole and not is_lightning and tx_item['value'].value < 0:
and role == Qt.ForegroundRole and tx_item['value'].value < 0:
red_brush = QBrush(QColor("#BC1E1E"))
return QVariant(red_brush)
elif col == HistoryColumns.FIAT_VALUE and role == Qt.ForegroundRole \