mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 21:04:32 +00:00
Merge pull request #3539
b825f6e
StandardDropdown: add FontAwesome fallback icons (rating89us)
This commit is contained in:
commit
3621ab3344
1 changed files with 7 additions and 9 deletions
|
@ -29,6 +29,7 @@
|
||||||
import QtQuick 2.9
|
import QtQuick 2.9
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtGraphicalEffects 1.0
|
import QtGraphicalEffects 1.0
|
||||||
|
import FontAwesome 1.0
|
||||||
|
|
||||||
import "../components" as MoneroComponents
|
import "../components" as MoneroComponents
|
||||||
import "../components/effects/" as MoneroEffects
|
import "../components/effects/" as MoneroEffects
|
||||||
|
@ -96,19 +97,16 @@ Item {
|
||||||
anchors.rightMargin: 12
|
anchors.rightMargin: 12
|
||||||
width: dropdownIcon.width
|
width: dropdownIcon.width
|
||||||
|
|
||||||
Image {
|
MoneroEffects.ImageMask {
|
||||||
id: dropdownIcon
|
id: dropdownIcon
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
source: "qrc:///images/whiteDropIndicator.png"
|
image: "qrc:///images/whiteDropIndicator.png"
|
||||||
visible: false
|
height: 8
|
||||||
}
|
width: 12
|
||||||
|
fontAwesomeFallbackIcon: FontAwesome.arrowDown
|
||||||
ColorOverlay {
|
fontAwesomeFallbackSize: 14
|
||||||
source: dropdownIcon
|
|
||||||
anchors.fill: dropdownIcon
|
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
rotation: dropdown.expanded ? 180 : 0
|
rotation: dropdown.expanded ? 180 : 0
|
||||||
opacity: 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue