Adding confirmation icons in Tachikoma's pull request, following considerations on security

This commit is contained in:
ThomasV 2012-10-13 08:57:22 +02:00
parent cdf81f370b
commit d8bebdccf6
7 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,11 @@
<RCC>
<qresource prefix="/" >
<file>electrum.png</file>
<file>icons/clock1.png</file>
<file>icons/clock2.png</file>
<file>icons/clock3.png</file>
<file>icons/clock4.png</file>
<file>icons/clock5.png</file>
<file>icons/confirmed.png</file>
<file>icons/lock.png</file>
<file>icons/preferences.png</file>

BIN
icons/clock1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

BIN
icons/clock2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B

BIN
icons/clock3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

BIN
icons/clock4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 962 B

BIN
icons/clock5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

View File

@ -410,7 +410,10 @@ class ElectrumWindow(QMainWindow):
if tx['height']:
conf = self.wallet.blocks - tx['height'] + 1
time_str = datetime.datetime.fromtimestamp( tx['timestamp']).isoformat(' ')[:-3]
icon = QIcon(":icons/confirmed.png")
if conf < 6:
icon = QIcon(":icons/clock%d.png"%conf)
else:
icon = QIcon(":icons/confirmed.png")
else:
conf = 0
time_str = 'pending'