From 781ed1653843dd95524dbf987cf1482180a885a7 Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 13 Jul 2026 16:38:40 -0400 Subject: [PATCH] launcher/spotlight: improve height-change animation port 1.5 (cherry picked from commit 7b5c25c50f6cb7d6d5c94daba44f22831c48a701) --- .../SpotlightLauncherContent.qml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/quickshell/Modals/DankLauncherV2/SpotlightLauncherContent.qml b/quickshell/Modals/DankLauncherV2/SpotlightLauncherContent.qml index 83e17c62a..081c76517 100644 --- a/quickshell/Modals/DankLauncherV2/SpotlightLauncherContent.qml +++ b/quickshell/Modals/DankLauncherV2/SpotlightLauncherContent.qml @@ -42,7 +42,17 @@ FocusScope { return Theme.surfaceContainer; } - implicitHeight: _searchAreaH + _resultsH + implicitHeight: _searchAreaH + resultsContainer.height + + property bool _animateResize: false + + Component.onCompleted: resizeAnimEnableTimer.restart() + + Timer { + id: resizeAnimEnableTimer + interval: 100 + onTriggered: root._animateResize = true + } function resetScroll() { resultsList.resetScroll(); @@ -239,8 +249,12 @@ FocusScope { } function onContentVisibleChanged() { - if (!root.parentModal?.contentVisible) + if (!root.parentModal?.contentVisible) { root.closeTransientUi(); + return; + } + root._animateResize = false; + resizeAnimEnableTimer.restart(); } } @@ -420,6 +434,7 @@ FocusScope { height: root._resultsH Behavior on height { + enabled: root._animateResize NumberAnimation { duration: root._resizeDuration easing.type: Easing.BezierSpline