2import Lomiri.Components 1.3
7 objectName: "promptButton"
9 property alias text: buttonLabel.text
10 property alias interactive: root.enabled
11 property bool isSecret
12 property bool loginError: false
13 property bool hasKeyboard: false
14 property string enteredText: ""
18 signal accepted(string response)
20 Keys.onSpacePressed: clicked();
21 Keys.onReturnPressed: clicked();
22 Keys.onEnterPressed: clicked();
26 activeFocusOnTab: true
32 Behavior on border.color {
36 color: root.loginError ? theme.palette.normal.negative : theme.palette.normal.raisedSecondaryText
37 width: root.loginError ? units.dp(2): units.dp(1)
43 onClicked: parent.clicked();
48 anchors.centerIn: parent
49 color: theme.palette.normal.raisedSecondaryText