Skip to content

Commit 48eed10

Browse files
committed
qml: Add flip-vertical icon
The flip-veritcal icon is primarily used when flipping the units displayed when clicked
1 parent 1f02fab commit 48eed10

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

src/Makefile.qt.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ QML_RES_ICONS = \
341341
qml/res/icons/cross.png \
342342
qml/res/icons/error.png \
343343
qml/res/icons/export.png \
344+
qml/res/icons/flip-vertical.png \
344345
qml/res/icons/gear.png \
345346
qml/res/icons/gear-outline.png \
346347
qml/res/icons/hidden.png \

src/qml/bitcoin_qml.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
<file alias="cross">res/icons/cross.png</file>
9999
<file alias="error">res/icons/error.png</file>
100100
<file alias="export">res/icons/export.png</file>
101+
<file alias="flip-vertical">res/icons/flip-vertical.png</file>
101102
<file alias="gear">res/icons/gear.png</file>
102103
<file alias="gear-outline">res/icons/gear-outline.png</file>
103104
<file alias="hidden">res/icons/hidden.png</file>

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/export").pixmap(requested_size);
9898
}
9999

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

src/qml/res/icons/flip-vertical.png

1.49 KB
Loading

src/qml/res/src/flip-vertical.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)