Skip to content

Commit f7cc57d

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

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
@@ -344,6 +344,7 @@ QML_RES_ICONS = \
344344
qml/res/icons/cross.png \
345345
qml/res/icons/error.png \
346346
qml/res/icons/export.png \
347+
qml/res/icons/flip-vertical.png \
347348
qml/res/icons/gear.png \
348349
qml/res/icons/gear-outline.png \
349350
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)