diff options
| author | xiphon <xiphon@protonmail.com> | 2020-12-02 23:55:42 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-12-03 19:40:15 +0000 |
| commit | 0d5d2dbf5ea5cc575b1e38854e935a8f1794146b (patch) | |
| tree | e8de25d2a9e3f4e2c675cb8f1ccb2728872e0577 /components/StandardButton.qml | |
| parent | 96f9c11320ee3c4f1f1c35f3ac8e8f78340bd378 (diff) | |
| download | monzero-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.qml | 4 |
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 |
