aboutsummaryrefslogtreecommitdiff
path: root/components/StandardButton.qml
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-12-02 23:55:42 +0000
committerxiphon <xiphon@protonmail.com>2020-12-03 19:40:15 +0000
commit0d5d2dbf5ea5cc575b1e38854e935a8f1794146b (patch)
treee8de25d2a9e3f4e2c675cb8f1ccb2728872e0577 /components/StandardButton.qml
parent96f9c11320ee3c4f1f1c35f3ac8e8f78340bd378 (diff)
downloadmonzero-gui-0d5d2dbf5ea5cc575b1e38854e935a8f1794146b.tar.gz
monzero-gui-0d5d2dbf5ea5cc575b1e38854e935a8f1794146b.tar.xz
monzero-gui-0d5d2dbf5ea5cc575b1e38854e935a8f1794146b.zip
Transfer: fix focus, cycle focus between Address, Amount and Send
Diffstat (limited to 'components/StandardButton.qml')
-rw-r--r--components/StandardButton.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml
index c69adb29..d26d9aa8 100644
--- a/components/StandardButton.qml
+++ b/components/StandardButton.qml
@@ -68,7 +68,7 @@ Item {
id: buttonRect
anchors.fill: parent
radius: 3
- border.width: parent.focus ? 1 : 0
+ border.width: parent.focus && parent.enabled ? 1 : 0
state: button.enabled ? "active" : "disabled"
Component.onCompleted: state = state
@@ -76,7 +76,7 @@ Item {
states: [
State {
name: "hover"
- when: buttonArea.containsMouse || button.focus
+ when: button.enabled && (buttonArea.containsMouse || button.focus)
PropertyChanges {
target: buttonRect
color: primary