mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
Hover effects for inlineButton
This commit is contained in:
parent
bfd2a63aca
commit
fb40d137f8
1 changed files with 10 additions and 6 deletions
|
@ -42,11 +42,6 @@ Item {
|
|||
property alias text: inlineText.text
|
||||
signal clicked()
|
||||
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 8
|
||||
anchors.topMargin: 8
|
||||
|
||||
function doClick() {
|
||||
// Android workaround
|
||||
releaseFocus();
|
||||
|
@ -76,9 +71,18 @@ Item {
|
|||
|
||||
MouseArea {
|
||||
id: buttonArea
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
cursorShape: rect.enabled ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||
hoverEnabled: true
|
||||
anchors.fill: parent
|
||||
onClicked: doClick()
|
||||
onEntered: {
|
||||
rect.color = "#707070";
|
||||
rect.opacity = 0.8;
|
||||
}
|
||||
onExited: {
|
||||
rect.opacity = 1.0;
|
||||
rect.color = "#808080";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue