From f3d0fd5313406158755be47ac0cdcca3893f037a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 9 May 2025 18:40:28 +0200 Subject: [PATCH] ai: "animate" thinking --- .../modules/sidebarLeft/aiChat/MessageThinkBlock.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/quickshell/modules/sidebarLeft/aiChat/MessageThinkBlock.qml b/.config/quickshell/modules/sidebarLeft/aiChat/MessageThinkBlock.qml index 95566ceea..f2f6b35d3 100644 --- a/.config/quickshell/modules/sidebarLeft/aiChat/MessageThinkBlock.qml +++ b/.config/quickshell/modules/sidebarLeft/aiChat/MessageThinkBlock.qml @@ -32,7 +32,7 @@ Item { property real thinkBlockComponentSpacing: 2 property var collapseAnimation: messageTextBlock.implicitHeight > 40 ? Appearance.animation.elementMoveEnter : Appearance.animation.elementMoveFast - property bool collapsed: root.completed || !root.done + property bool collapsed: true /* should be root.completed but its kinda buggy rn so nope */ Layout.fillWidth: true implicitHeight: collapsed ? header.implicitHeight : columnLayout.implicitHeight @@ -46,7 +46,7 @@ Item { } Behavior on implicitHeight { - enabled: root.done ?? false + enabled: root.completed ?? false NumberAnimation { duration: collapseAnimation.duration easing.type: collapseAnimation.type @@ -69,7 +69,7 @@ Item { MouseArea { // Click to reveal id: headerMouseArea - enabled: root.done + enabled: root.completed anchors.fill: parent cursorShape: Qt.PointingHandCursor hoverEnabled: true @@ -98,12 +98,12 @@ Item { id: thinkBlockLanguage Layout.fillWidth: false Layout.alignment: Qt.AlignLeft - text: root.done ? "Chain of Thought" : "Thinking..." + text: root.completed ? "Chain of Thought" : ("Thinking" + ".".repeat(Math.random() * 4)) } Item { Layout.fillWidth: true } Button { // Expand button id: expandButton - visible: root.done + visible: root.completed implicitWidth: 22 implicitHeight: 22 @@ -160,7 +160,7 @@ Item { clip: true Behavior on implicitHeight { - enabled: root.done ?? false + enabled: root.completed ?? false NumberAnimation { duration: collapseAnimation.duration easing.type: collapseAnimation.easing