aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-06-22 12:37:48 +0200
committerrating89us <rating89us@rating89us.com>2021-06-22 20:38:21 +0200
commit51ac3ca98190a780d1af010d4461e77e6bd3190c (patch)
tree2bbc12494e7f9c6d4d7960d3b7c699484f6e1811 /components
parent453388f7444c08fed77f9d4e256666abc77c64dd (diff)
downloadmonzero-gui-51ac3ca98190a780d1af010d4461e77e6bd3190c.tar.gz
monzero-gui-51ac3ca98190a780d1af010d4461e77e6bd3190c.tar.xz
monzero-gui-51ac3ca98190a780d1af010d4461e77e6bd3190c.zip
StandardDropdown: use ArrowCursor; remove rotation of dropdownIcon; change background color on mouse hover; smaller text
Diffstat (limited to 'components')
-rw-r--r--components/StandardDropdown.qml11
1 files changed, 5 insertions, 6 deletions
diff --git a/components/StandardDropdown.qml b/components/StandardDropdown.qml
index 487f233e..253c7767 100644
--- a/components/StandardDropdown.qml
+++ b/components/StandardDropdown.qml
@@ -54,10 +54,10 @@ ColumnLayout {
property alias labelWrapMode: dropdownLabel.wrapMode
property alias labelHorizontalAlignment: dropdownLabel.horizontalAlignment
property bool showingHeader: dropdownLabel.text !== ""
- property int labelFontSize: 16
+ property int labelFontSize: 14
property bool labelFontBold: false
property int dropdownHeight: 39
- property int fontSize: 16
+ property int fontSize: 14
property int fontItemSize: 14
property string colorBorder: MoneroComponents.Style.inputBorderColorInActive
property string colorHeaderBackground: "transparent"
@@ -90,7 +90,7 @@ ColumnLayout {
Rectangle {
id: head
- color: "transparent"
+ color: dropArea.containsMouse ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent"
border.width: dropdown.headerBorder ? 1 : 0
border.color: dropdown.colorBorder
radius: 4
@@ -129,7 +129,6 @@ ColumnLayout {
fontAwesomeFallbackIcon: FontAwesome.arrowDown
fontAwesomeFallbackSize: 14
color: MoneroComponents.Style.defaultFontColor
- rotation: dropdown.expanded ? 180 : 0
}
}
@@ -138,7 +137,7 @@ ColumnLayout {
anchors.fill: parent
onClicked: dropdown.expanded ? popup.close() : popup.open()
hoverEnabled: true
- cursorShape: Qt.PointingHandCursor
+ cursorShape: Qt.ArrowCursor
}
}
@@ -227,7 +226,7 @@ ColumnLayout {
id: itemArea
anchors.fill: parent
hoverEnabled: true
- cursorShape: Qt.PointingHandCursor
+ cursorShape: Qt.ArrowCursor
onClicked: {
popup.close()