aboutsummaryrefslogtreecommitdiff
path: root/components/StandardDropdown.qml
diff options
context:
space:
mode:
authorSander Ferdinand <sa.ferdinand@gmail.com>2017-12-06 22:55:39 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-29 23:04:01 +0100
commit3d5fee0a2f20d0456f9ec80c4c1779df0fa6e392 (patch)
tree72d1e8112d67df4508e21248e86762fb0a256366 /components/StandardDropdown.qml
parent8295b9dffd71e859f3738a8b58e0d1c1fea7b9d9 (diff)
downloadmonzero-gui-3d5fee0a2f20d0456f9ec80c4c1779df0fa6e392.tar.gz
monzero-gui-3d5fee0a2f20d0456f9ec80c4c1779df0fa6e392.tar.xz
monzero-gui-3d5fee0a2f20d0456f9ec80c4c1779df0fa6e392.zip
StandardButton/StandardDropdown QML development
Diffstat (limited to 'components/StandardDropdown.qml')
-rw-r--r--components/StandardDropdown.qml13
1 files changed, 8 insertions, 5 deletions
diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml
index 91a514eb..2818541e 100644
--- a/components/StandardDropdown.qml
+++ b/components/StandardDropdown.qml
@@ -27,6 +27,7 @@
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import QtQuick 2.0
+import "." 1.0
Item {
id: dropdown
@@ -175,10 +176,10 @@ Item {
anchors.right: col2Text.left
anchors.leftMargin: 12 * scaleRatio
anchors.rightMargin: column2.length > 0 ? 12 * scaleRatio: 0
- font.family: "Arial"
+ font.family: Style.fontRegular.name
font.bold: true
- font.pixelSize: 12 * scaleRatio
- color: "#FFFFFF"
+ font.pixelSize: 14 * scaleRatio
+ color: itemArea.containsMouse || index === column.currentIndex || itemArea.containsMouse ? "#FA6800" : "#FFFFFF"
text: qsTr(column1) + translationManager.emptyString
}
@@ -187,8 +188,8 @@ Item {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 45 * scaleRatio
- font.family: "Arial"
- font.pixelSize: 12 * scaleRatio
+ font.family: Style.fontRegular.name
+ font.pixelSize: 14 * scaleRatio
color: "#FFFFFF"
text: column2
}
@@ -211,6 +212,8 @@ Item {
id: itemArea
anchors.fill: parent
hoverEnabled: true
+ cursorShape: Qt.PointingHandCursor
+
onClicked: {
dropdown.expanded = false
column.currentIndex = index