Grow the notch launcher down once you search

The empty launcher stays in the widened notch, now laid out exactly
like the launcher window's bar. Typing (or the magnifying glass / Down)
hands over to the launcher window, which opens at the notch's size with
the text already in it and only grows down with the results; clearing
the search shrinks it back into the notch. The query and browse state
are shared through ShellState, keys typed during the hand-over carry
across, and the bar keeps its keyboard claim so focus returns on its own.
The launcher window's open state is read from plain properties so it
never maps for a frame on a stale value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-14 15:09:46 +01:00
1 parent 1f029922ec
commit 415b1b3cd6
5 files changed
+151 -202

No files matched your search

+16 -3
View File
@@ -129,9 +129,22 @@ Singleton {
// "emoji" is the Emoji Picker.
// Changing it on an open launcher switches in place.
property string launcherMode: "apps"
// Notch mode searches apps in the notch pill itself, the way a notification
// widens it; clipboard history and emoji still open the launcher window.
readonly property bool notchSearch: notchMode && launcherOpen && launcherMode === "apps"
// Notch mode opens the launcher in the notch pill itself, the way a
// notification widens it. While the search is empty it stays there
// (notchSearch); typing or browsing hands over to the launcher window,
// which grows down from the widened pill. Both share the query.
property string launcherQuery: ""
property bool launcherBrowse: false
readonly property bool notchLauncher: notchMode && launcherOpen && launcherMode === "apps"
readonly property bool notchSearch: notchLauncher && launcherQuery === "" && !launcherBrowse
onLauncherOpenChanged: {
launcherQuery = "";
launcherBrowse = false;
}
onLauncherModeChanged: {
launcherQuery = "";
launcherBrowse = false;
}
function activeScreen() {
return ScreenService.active;
}