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:
1 parent
1f029922ec
commit
415b1b3cd6
5 files changed
+151
-202
No files matched your search
@@ -26,12 +26,15 @@ Item {
|
||||
if (latest)
|
||||
notice = latest;
|
||||
}
|
||||
readonly property bool searching: ShellState.notchSearch && ScreenService.current(ShellState.launcherScreen) === barScreen && visible
|
||||
// Wide while the launcher is open here, also under the launcher window
|
||||
// once a search grows it down.
|
||||
readonly property bool searching: ShellState.notchLauncher && ScreenService.current(ShellState.launcherScreen) === barScreen
|
||||
readonly property bool showing: !!latest && owner && visible && !searching
|
||||
// Holds the last banner while the notch closes around it.
|
||||
property var notice: null
|
||||
readonly property int noticeWidth: 340
|
||||
readonly property int searchWidth: 520
|
||||
// The launcher window's width, so it can take over at the same size.
|
||||
readonly property int searchWidth: ConfigService.ready ? ConfigService.data.launcher.width : 680
|
||||
readonly property real bodyWidth: ShellState.notchPillWidth + (searching ? searchWidth : showing ? noticeWidth : 0)
|
||||
implicitWidth: bodyWidth + 2 * BarDrawers.ear
|
||||
implicitHeight: BarDrawers.bottom
|
||||
@@ -232,7 +235,7 @@ Item {
|
||||
NotchSearch {
|
||||
width: root.searchWidth
|
||||
height: parent.height
|
||||
active: root.searching
|
||||
active: root.searching && ShellState.notchSearch
|
||||
}
|
||||
}
|
||||
// 0 (critical) stays until dismissed. Each banner's time counts from its
|
||||
|
||||
Reference in new issue
Block a user