fix(StatusBaseInput): Implement cursor as per designs (#642)

This commit is contained in:
Igor Sirotin 2022-05-03 19:08:02 +03:00 committed by Michał Cieślak
parent 7080f0aecb
commit 5c420a0e11
1 changed files with 15 additions and 0 deletions

View File

@ -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)