From 81116598cbb38c808682dbae91db12b578ce475f Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 30 Oct 2025 18:17:57 +0100 Subject: [PATCH] sidebar: ai: make loading indicator transition smoother, disable text fade by default --- dots/.config/quickshell/ii/modules/common/Config.qml | 2 +- .../ii/modules/sidebarLeft/aiChat/AiMessage.qml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/Config.qml b/dots/.config/quickshell/ii/modules/common/Config.qml index 18cd92fc3..39c0ef131 100644 --- a/dots/.config/quickshell/ii/modules/common/Config.qml +++ b/dots/.config/quickshell/ii/modules/common/Config.qml @@ -415,7 +415,7 @@ Singleton { property int delay: 300 // Delay before sending request. Reduces (potential) rate limits and lag. } property JsonObject ai: JsonObject { - property bool textFadeIn: true + property bool textFadeIn: false } property JsonObject booru: JsonObject { property bool allowNsfw: false diff --git a/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml b/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml index d0269a88b..9ede16e33 100644 --- a/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml +++ b/dots/.config/quickshell/ii/modules/sidebarLeft/aiChat/AiMessage.qml @@ -269,9 +269,13 @@ Rectangle { Item { Layout.fillWidth: true - implicitHeight: loadingIndicatorLoader.implicitHeight + implicitHeight: loadingIndicatorLoader.shown ? loadingIndicatorLoader.implicitHeight : 0 implicitWidth: loadingIndicatorLoader.implicitWidth - visible: loadingIndicatorLoader.visible + visible: implicitHeight > 0 + + Behavior on implicitHeight { + animation: Appearance.animation.elementMove.numberAnimation.createObject(this) + } FadeLoader { id: loadingIndicatorLoader anchors.centerIn: parent