Skip to content

Commit 931d442

Browse files
committed
qml: Add DISABLED state to ContinueButton
1 parent 4f11e01 commit 931d442

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/qml/controls/ContinueButton.qml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Button {
3232
radius: 5
3333

3434
states: [
35+
State {
36+
name: "DISABLED"; when: !root.enabled
37+
PropertyChanges { target: bg; color: Theme.color.neutral2 }
38+
PropertyChanges { target: bg; border.color: Theme.color.neutral2 }
39+
PropertyChanges { target: root; textColor: Theme.color.neutral5 }
40+
},
3541
State {
3642
name: "PRESSED"; when: root.pressed
3743
PropertyChanges { target: bg; color: backgroundPressedColor }

0 commit comments

Comments
 (0)