diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-03 22:57:33 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-04 23:07:54 +0800 |
| commit | abc717620fba76e27d1b984c47e5c56461a411e2 (patch) | |
| tree | 40ce24830871105febec123c68392b9052608caa | |
| parent | f36d416853696b103934b56ee57118c733191dfa (diff) | |
Launcher: preview max len
| -rw-r--r-- | config/Launcher.qml | 5 | ||||
| -rw-r--r-- | popups/launcher/components/IComponent.qml | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/config/Launcher.qml b/config/Launcher.qml index 9c94a67..efb5dc8 100644 --- a/config/Launcher.qml +++ b/config/Launcher.qml @@ -30,6 +30,8 @@ Singleton { readonly property int predictiveCompletionRadius: 6 + readonly property int maxPreviewLen: 20 + readonly property list<Component> widgets: [ // recommanded order: // 1. components with .startswith @@ -59,5 +61,8 @@ Singleton { Component { App {} }, + Component { + DuckDuckGo {} + } ] } diff --git a/popups/launcher/components/IComponent.qml b/popups/launcher/components/IComponent.qml index ad52fb3..26de055 100644 --- a/popups/launcher/components/IComponent.qml +++ b/popups/launcher/components/IComponent.qml @@ -20,7 +20,9 @@ IRect { property string answer: processed?.answer || "" property Component preview: Component { IText { - animate: true + // TODO: use proper active: false via Loader + visible: answer.length <= Launcher.maxPreviewLen + animate: true text: answer } } |
