fix(StatusBaseInput): Implement cursor as per designs (#642)
This commit is contained in:
parent
7080f0aecb
commit
5c420a0e11
|
@ -398,6 +398,21 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cursorDelegate: Rectangle {
|
||||||
|
color: Theme.palette.primaryColor1
|
||||||
|
implicitWidth: 2
|
||||||
|
implicitHeight: 22
|
||||||
|
radius: 1
|
||||||
|
visible: edit.cursorVisible
|
||||||
|
|
||||||
|
SequentialAnimation on visible {
|
||||||
|
loops: Animation.Infinite
|
||||||
|
running: edit.cursorVisible
|
||||||
|
PropertyAnimation { to: false; duration: 600; }
|
||||||
|
PropertyAnimation { to: true; duration: 600; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
id: placeholder
|
id: placeholder
|
||||||
visible: (edit.text.length === 0)
|
visible: (edit.text.length === 0)
|
||||||
|
|
Loading…
Reference in New Issue