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 GitHub
parent ae1e72fb23
commit 31e90c2d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {
id: placeholder
visible: (edit.text.length === 0)