From 51ac3ca98190a780d1af010d4461e77e6bd3190c Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Tue, 22 Jun 2021 12:37:48 +0200 Subject: [PATCH] StandardDropdown: use ArrowCursor; remove rotation of dropdownIcon; change background color on mouse hover; smaller text --- components/StandardDropdown.qml | 11 +++++------ pages/Transfer.qml | 1 + 2 files changed, 6 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() diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 05231139..156d4e1e 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -700,6 +700,7 @@ Rectangle { currentIndex: 0 dataModel: priorityModelV5 labelText: qsTr("Transaction priority") + translationManager.emptyString + labelFontSize: 16 } MoneroComponents.TextPlain {