From f2be6cfeb1c9a3a9546256817fc38fe661666ec5 Mon Sep 17 00:00:00 2001 From: purian23 Date: Mon, 19 Jan 2026 00:34:10 -0500 Subject: [PATCH] notepad: Update cursor color & activity --- quickshell/Modules/Notepad/NotepadTextEditor.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/quickshell/Modules/Notepad/NotepadTextEditor.qml b/quickshell/Modules/Notepad/NotepadTextEditor.qml index c2e63b9d..fed8e2e7 100644 --- a/quickshell/Modules/Notepad/NotepadTextEditor.qml +++ b/quickshell/Modules/Notepad/NotepadTextEditor.qml @@ -404,6 +404,22 @@ Column { topPadding: Theme.spacingM rightPadding: Theme.spacingM bottomPadding: Theme.spacingM + cursorDelegate: Rectangle { + width: 1.5 + radius: 1 + color: Theme.surfaceText + x: textArea.cursorRectangle.x + y: textArea.cursorRectangle.y + height: textArea.cursorRectangle.height + opacity: 1.0 + + SequentialAnimation on opacity { + running: textArea.activeFocus + loops: Animation.Infinite + PropertyAnimation { from: 1.0; to: 0.0; duration: 650; easing.type: Easing.InOutQuad } + PropertyAnimation { from: 0.0; to: 1.0; duration: 650; easing.type: Easing.InOutQuad } + } + } Component.onCompleted: { loadCurrentTabContent()