feat(StatusPasswordStrengthIndicator): Add new Strength type `None`
Add new Strength type None and its corresponding state.
This commit is contained in:
parent
387a103742
commit
6b7a332d61
|
@ -15,16 +15,21 @@ StatusProgressBar {
|
||||||
property string labelGreat: "Great"
|
property string labelGreat: "Great"
|
||||||
|
|
||||||
enum Strength {
|
enum Strength {
|
||||||
VeryWeak, // 0
|
None, // 0
|
||||||
Weak, // 1
|
VeryWeak, // 1
|
||||||
SoSo, // 2
|
Weak, // 2
|
||||||
Good, // 3
|
SoSo, // 3
|
||||||
Great // 4
|
Good, // 4
|
||||||
|
Great // 5
|
||||||
}
|
}
|
||||||
|
|
||||||
// Behavior:
|
// Behavior:
|
||||||
states: [
|
states: [
|
||||||
// Strength states definition:
|
// Strength states definition:
|
||||||
|
State {
|
||||||
|
when: control.strength === StatusPasswordStrengthIndicator.Strength.None
|
||||||
|
PropertyChanges { target: control; text: ""}
|
||||||
|
},
|
||||||
State {
|
State {
|
||||||
when: control.strength === StatusPasswordStrengthIndicator.Strength.VeryWeak
|
when: control.strength === StatusPasswordStrengthIndicator.Strength.VeryWeak
|
||||||
PropertyChanges { target: control; fillColor : Theme.palette.dangerColor1}
|
PropertyChanges { target: control; fillColor : Theme.palette.dangerColor1}
|
||||||
|
|
Loading…
Reference in New Issue