From 31e90c2d472748266432ac92d4e992c6038cab43 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Tue, 3 May 2022 19:08:02 +0300 Subject: [PATCH] fix(StatusBaseInput): Implement cursor as per designs (#642) --- src/StatusQ/Controls/StatusBaseInput.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/StatusQ/Controls/StatusBaseInput.qml b/src/StatusQ/Controls/StatusBaseInput.qml index b8d170ef..cd316f98 100644 --- a/src/StatusQ/Controls/StatusBaseInput.qml +++ b/src/StatusQ/Controls/StatusBaseInput.qml @@ -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)