Skip to content

Commit 879d3b1

Browse files
committed
qml: introduce the shutdown icon
1 parent 7b168da commit 879d3b1

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

src/Makefile.qt.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ QML_RES_ICONS = \
324324
qml/res/icons/info.png \
325325
qml/res/icons/network-dark.png \
326326
qml/res/icons/network-light.png \
327+
qml/res/icons/shutdown.png \
327328
qml/res/icons/storage-dark.png \
328329
qml/res/icons/storage-light.png
329330

src/qml/bitcoin_qml.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
<file alias="info">res/icons/info.png</file>
6464
<file alias="network-dark">res/icons/network-dark.png</file>
6565
<file alias="network-light">res/icons/network-light.png</file>
66+
<file alias="shutdown">res/icons/shutdown.png</file>
6667
<file alias="storage-dark">res/icons/storage-dark.png</file>
6768
<file alias="storage-light">res/icons/storage-light.png</file>
6869
</qresource>

src/qml/imageprovider.cpp

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

100+
if (id == "shutdown") {
101+
*size = requested_size;
102+
return QIcon(":/icons/shutdown").pixmap(requested_size);
103+
}
104+
100105
if (id == "storage-dark") {
101106
*size = requested_size;
102107
return QIcon(":/icons/storage-dark").pixmap(requested_size);

src/qml/res/icons/shutdown.png

3.1 KB
Loading

src/qml/res/src/shutdown.svg

Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)