diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2021-06-07 14:02:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-07 14:02:19 +0200 |
| commit | b825f6e1bd085cf81ae01b796d9418c4bcdbbe29 (patch) | |
| tree | 65f1d949ed8d2302c128f72b0fce491272baf3a8 /components | |
| parent | 2946127ed791ef8dd6dc430b681a14cd5bd2d71e (diff) | |
| download | monzero-gui-b825f6e1bd085cf81ae01b796d9418c4bcdbbe29.tar.gz monzero-gui-b825f6e1bd085cf81ae01b796d9418c4bcdbbe29.tar.xz monzero-gui-b825f6e1bd085cf81ae01b796d9418c4bcdbbe29.zip | |
StandardDropdown: add FontAwesome fallback icons
Diffstat (limited to 'components')
| -rw-r--r-- | components/StandardDropdown.qml | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml index dfe37a5d..d361ff39 100644 --- a/components/StandardDropdown.qml +++ b/components/StandardDropdown.qml @@ -29,6 +29,7 @@ import QtQuick 2.9 import QtQuick.Controls 2.2 import QtGraphicalEffects 1.0 +import FontAwesome 1.0 import "../components" as MoneroComponents import "../components/effects/" as MoneroEffects @@ -96,19 +97,16 @@ Item { anchors.rightMargin: 12 width: dropdownIcon.width - Image { + MoneroEffects.ImageMask { id: dropdownIcon anchors.centerIn: parent - source: "qrc:///images/whiteDropIndicator.png" - visible: false - } - - ColorOverlay { - source: dropdownIcon - anchors.fill: dropdownIcon + image: "qrc:///images/whiteDropIndicator.png" + height: 8 + width: 12 + fontAwesomeFallbackIcon: FontAwesome.arrowDown + fontAwesomeFallbackSize: 14 color: MoneroComponents.Style.defaultFontColor rotation: dropdown.expanded ? 180 : 0 - opacity: 1 } } |
