diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-29 22:46:22 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-29 22:46:22 +0800 |
| commit | c2331d6bdf1a352570d8440f02f996576dbd16c4 (patch) | |
| tree | a69962ed4ca3901a9193c7687c68e14b8e4069dd | |
| parent | ba89539e76c39af8327ed5a832d987c265cd8e63 (diff) | |
DuckDuckGo: animate expansion
| -rw-r--r-- | popups/launcher/components/DuckDuckGo.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/popups/launcher/components/DuckDuckGo.qml b/popups/launcher/components/DuckDuckGo.qml index 026b240..0514b66 100644 --- a/popups/launcher/components/DuckDuckGo.qml +++ b/popups/launcher/components/DuckDuckGo.qml @@ -14,7 +14,7 @@ IComponent { property int cursorPosition: SelectionState.cursorPosition property bool expand: false - height: valid ? expand ? layout.implicitHeight + (Launcher.duckduckgoSpacing * 2) : Launcher.widgetHeight : 0 + implicitHeight: valid ? expand ? layout.implicitHeight + (Launcher.duckduckgoSpacing * 2) : Launcher.widgetHeight : 0 name: "DuckDuckGo" // subclass of WebSearch in the future preview: Component { @@ -145,4 +145,8 @@ IComponent { } } } + + Behavior on implicitHeight { + ISpringAnimation {} + } } |
