diff --git a/icons.qrc b/icons.qrc index 966b88e18..266764c2d 100644 --- a/icons.qrc +++ b/icons.qrc @@ -1,6 +1,11 @@ electrum.png + icons/clock1.png + icons/clock2.png + icons/clock3.png + icons/clock4.png + icons/clock5.png icons/confirmed.png icons/lock.png icons/preferences.png diff --git a/icons/clock1.png b/icons/clock1.png new file mode 100644 index 000000000..448e47f94 Binary files /dev/null and b/icons/clock1.png differ diff --git a/icons/clock2.png b/icons/clock2.png new file mode 100644 index 000000000..c1a6e99f7 Binary files /dev/null and b/icons/clock2.png differ diff --git a/icons/clock3.png b/icons/clock3.png new file mode 100644 index 000000000..e429a402c Binary files /dev/null and b/icons/clock3.png differ diff --git a/icons/clock4.png b/icons/clock4.png new file mode 100644 index 000000000..ba036f47d Binary files /dev/null and b/icons/clock4.png differ diff --git a/icons/clock5.png b/icons/clock5.png new file mode 100644 index 000000000..411d7a78a Binary files /dev/null and b/icons/clock5.png differ diff --git a/lib/gui_qt.py b/lib/gui_qt.py index 530bcfbbf..d7a13d53d 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -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'