mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
StandardDropdown: use ArrowCursor; remove rotation of dropdownIcon; change background color on mouse hover; smaller text
This commit is contained in:
parent
453388f744
commit
51ac3ca981
2 changed files with 6 additions and 6 deletions
|
@ -54,10 +54,10 @@ ColumnLayout {
|
||||||
property alias labelWrapMode: dropdownLabel.wrapMode
|
property alias labelWrapMode: dropdownLabel.wrapMode
|
||||||
property alias labelHorizontalAlignment: dropdownLabel.horizontalAlignment
|
property alias labelHorizontalAlignment: dropdownLabel.horizontalAlignment
|
||||||
property bool showingHeader: dropdownLabel.text !== ""
|
property bool showingHeader: dropdownLabel.text !== ""
|
||||||
property int labelFontSize: 16
|
property int labelFontSize: 14
|
||||||
property bool labelFontBold: false
|
property bool labelFontBold: false
|
||||||
property int dropdownHeight: 39
|
property int dropdownHeight: 39
|
||||||
property int fontSize: 16
|
property int fontSize: 14
|
||||||
property int fontItemSize: 14
|
property int fontItemSize: 14
|
||||||
property string colorBorder: MoneroComponents.Style.inputBorderColorInActive
|
property string colorBorder: MoneroComponents.Style.inputBorderColorInActive
|
||||||
property string colorHeaderBackground: "transparent"
|
property string colorHeaderBackground: "transparent"
|
||||||
|
@ -90,7 +90,7 @@ ColumnLayout {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: head
|
id: head
|
||||||
color: "transparent"
|
color: dropArea.containsMouse ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent"
|
||||||
border.width: dropdown.headerBorder ? 1 : 0
|
border.width: dropdown.headerBorder ? 1 : 0
|
||||||
border.color: dropdown.colorBorder
|
border.color: dropdown.colorBorder
|
||||||
radius: 4
|
radius: 4
|
||||||
|
@ -129,7 +129,6 @@ ColumnLayout {
|
||||||
fontAwesomeFallbackIcon: FontAwesome.arrowDown
|
fontAwesomeFallbackIcon: FontAwesome.arrowDown
|
||||||
fontAwesomeFallbackSize: 14
|
fontAwesomeFallbackSize: 14
|
||||||
color: MoneroComponents.Style.defaultFontColor
|
color: MoneroComponents.Style.defaultFontColor
|
||||||
rotation: dropdown.expanded ? 180 : 0
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,7 +137,7 @@ ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: dropdown.expanded ? popup.close() : popup.open()
|
onClicked: dropdown.expanded ? popup.close() : popup.open()
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.ArrowCursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,7 +226,7 @@ ColumnLayout {
|
||||||
id: itemArea
|
id: itemArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.ArrowCursor
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
popup.close()
|
popup.close()
|
||||||
|
|
|
@ -700,6 +700,7 @@ Rectangle {
|
||||||
currentIndex: 0
|
currentIndex: 0
|
||||||
dataModel: priorityModelV5
|
dataModel: priorityModelV5
|
||||||
labelText: qsTr("Transaction priority") + translationManager.emptyString
|
labelText: qsTr("Transaction priority") + translationManager.emptyString
|
||||||
|
labelFontSize: 16
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.TextPlain {
|
MoneroComponents.TextPlain {
|
||||||
|
|
Loading…
Reference in a new issue