show history debits in red
authorbkkcoins <chrissavery@gmail.com>
Fri, 4 Jan 2013 05:25:29 +0000 (12:25 +0700)
committerbkkcoins <chrissavery@gmail.com>
Fri, 4 Jan 2013 05:25:29 +0000 (12:25 +0700)
data/cleanlook/style.css
lib/gui_qt.py
lib/history_widget.py

index 66bda49..eda2117 100644 (file)
@@ -94,7 +94,7 @@ MiniWindow QPushButton {
     color: #333;
 }
 
-#history::item
+#history
 {
     color: #888;
 }
index 077e873..3116c0a 100644 (file)
@@ -599,6 +599,8 @@ class ElectrumWindow(QMainWindow):
             item.setFont(2, QFont(MONOSPACE_FONT))
             item.setFont(3, QFont(MONOSPACE_FONT))
             item.setFont(4, QFont(MONOSPACE_FONT))
+            if value < 0:
+                               item.setForeground(3, QBrush(QColor("#BC1E1E")))
             if tx_hash:
                 item.setToolTip(0, tx_hash)
             if is_default_label:
index f04d1e7..2ca9a5d 100644 (file)
@@ -20,5 +20,7 @@ class HistoryWidget(QTreeWidget):
         if date is None:
           date = "Unknown"
         item = QTreeWidgetItem([amount, address, date])
+        if float(amount) < 0:
+                 item.setForeground(0, QBrush(QColor("#BC1E1E")))
         self.insertTopLevelItem(0, item)