Skip to content

Commit 946f418

Browse files
committed
qml: Add pending icon
The pending icon will be used to show the status of transactions
1 parent 6859c04 commit 946f418

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

qml/bitcoin_qml.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
<file alias="network-dark">res/icons/network-dark.png</file>
108108
<file alias="network-light">res/icons/network-light.png</file>
109109
<file alias="plus">res/icons/plus.png</file>
110+
<file alias="pending">res/icons/pending.png</file>
110111
<file alias="shutdown">res/icons/shutdown.png</file>
111112
<file alias="singlesig-wallet">res/icons/singlesig-wallet.png</file>
112113
<file alias="storage-dark">res/icons/storage-dark.png</file>

qml/imageprovider.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ QPixmap ImageProvider::requestPixmap(const QString& id, QSize* size, const QSize
132132
return QIcon(":/icons/network-light").pixmap(requested_size);
133133
}
134134

135+
if (id == "pending") {
136+
*size = requested_size;
137+
return QIcon(":/icons/pending").pixmap(requested_size);
138+
}
139+
135140
if (id == "shutdown") {
136141
*size = requested_size;
137142
return QIcon(":/icons/shutdown").pixmap(requested_size);

qml/res/icons/pending.png

4.81 KB
Loading

qml/res/src/pending.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)