Skip to content

Commit 35e5f21

Browse files
committed
qml: Add pending icon
The pending icon will be used to show the status of transactions
1 parent 48eed10 commit 35e5f21

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

src/Makefile.qt.include

+1
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ QML_RES_ICONS = \
350350
qml/res/icons/network-dark.png \
351351
qml/res/icons/network-light.png \
352352
qml/res/icons/plus.png \
353+
qml/res/icons/pending.png \
353354
qml/res/icons/shutdown.png \
354355
qml/res/icons/singlesig-wallet.png \
355356
qml/res/icons/storage-dark.png \

src/qml/bitcoin_qml.qrc

+1
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>

src/qml/imageprovider.cpp

+5
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);

src/qml/res/icons/pending.png

4.81 KB
Loading

src/qml/res/src/pending.svg

+4
Loading

0 commit comments

Comments
 (0)