Put the whole launcher inside the notch, the pocket-dots way

The launcher's contents (search, results, app grid, commands, clipboard
history and emoji) move into LauncherView, which the launcher window
hosts normally and the notch hosts in notch mode. In the notch it is one
more face of the same shape: the search sits in the band beside the
clock, sized to the band so it never clips, and the notch springs wider
and then down to fit whatever is below (springs as on pocket-dots, scaled
by the notch speed settings). The bar window grows tall only while it is
open, with input still masked to the shapes. The separate window, the
hand-over between them and the compact search are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-14 15:19:04 +01:00
1 parent 415b1b3cd6
commit 065b728af6
7 files changed
+720 -870

No files matched your search

+57 -26
View File
@@ -10,7 +10,9 @@ import "../theme"
// concave ears, showing the time, plus cover art and a small visualizer while
// audio plays. Clicking it opens the notch panel. A new notification widens
// it: the clock and media keep the left end, the banner takes the right. The
// launcher opens the same way, with the search where the banner would be.
// launcher opens the same way, as one more face of the notch (the pocket-dots
// way): its search sits in the band beside the clock, and the notch grows
// down to fit the results, clipboard history or emoji below it.
Item {
id: root
property var barScreen
@@ -26,23 +28,36 @@ Item {
if (latest)
notice = latest;
}
// 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
// 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 band: BarDrawers.bottom
readonly property real bodyWidth: ShellState.notchPillWidth + (searching ? searchWidth : showing ? noticeWidth : 0)
// The launcher's results hang below the band.
readonly property real bodyHeight: band + (searching ? launcher.bodyHeight : 0)
// Tallest the launcher may grow; the bar window reserves this while open.
readonly property real maxBodyHeight: Math.min(460, (barScreen ? barScreen.height : 1080) * 0.6)
implicitWidth: bodyWidth + 2 * BarDrawers.ear
implicitHeight: BarDrawers.bottom
implicitHeight: bodyHeight
// Springs, as on pocket-dots: the width arrives quickly and stays, the
// height follows with a little slack, so the notch widens and then drops.
// The notch speed settings stiffen or soften them.
readonly property real springScale: Theme.duration / (searching || showing ? Theme.notchOpenDuration : Theme.notchCloseDuration)
Behavior on implicitWidth {
NumberAnimation {
duration: Theme.notchDuration * 1.6
easing.type: Easing.BezierSpline
easing.bezierCurve: [0.2, 0, 0, 1, 1, 1]
SpringAnimation {
spring: 5.2 * root.springScale
damping: 0.58
epsilon: 0.25
}
}
Behavior on implicitHeight {
SpringAnimation {
spring: 3.1 * root.springScale
damping: 0.34
epsilon: 0.25
}
}
Demand {
@@ -55,14 +70,19 @@ Item {
bodyHeight: root.height
ear: BarDrawers.ear
radius: Math.min(Theme.radius, root.height / 2)
fillColor: Theme.notchFill
fillColor: root.searching ? Theme.notchLauncherFill : Theme.notchFill
Behavior on fillColor {
ColorAnimation {
duration: root.searching ? Theme.notchColorDuration : Math.min(Theme.notchColorDuration, Theme.notchCloseDuration)
}
}
}
// The pill's own width at the left end; its contents stay centred there.
Item {
id: lead
x: BarDrawers.ear
width: ShellState.notchPillWidth
height: root.height
height: root.band
}
NotchGlance {
anchors.centerIn: lead
@@ -93,7 +113,7 @@ Item {
objectName: "notchNotice"
x: lead.x + lead.width
width: Math.max(0, root.width - BarDrawers.ear - x)
height: root.height
height: root.band
clip: true
visible: width > 1
opacity: root.showing ? 1 : 0
@@ -211,31 +231,42 @@ Item {
}
}
Item {
objectName: "notchSearch"
x: lead.x + lead.width
width: Math.max(0, root.width - BarDrawers.ear - x)
objectName: "notchLauncher"
x: BarDrawers.ear
width: Math.max(0, root.width - 2 * BarDrawers.ear)
height: root.height
clip: true
// Comes in once the notch has started to widen, and leaves first.
opacity: root.searching ? 1 : 0
visible: width > 1 && opacity > 0
Behavior on opacity {
NumberAnimation {
duration: root.searching ? Theme.notchDuration * 1.6 : Theme.notchDuration * 0.6
easing.type: Easing.OutCubic
SequentialAnimation {
PauseAnimation {
duration: root.searching ? Theme.notchOpenDuration * 0.5 : 0
}
NumberAnimation {
duration: root.searching ? Theme.notchOpenDuration : Theme.notchCloseDuration * 0.5
easing.type: root.searching ? Easing.OutCubic : Easing.InQuad
}
}
}
Rectangle {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
x: ShellState.notchPillWidth
y: root.band * 0.25
width: 1
height: parent.height * 0.5
height: root.band * 0.5
color: Theme.hairline
}
// Laid out at full width so it does not reflow while the notch grows.
NotchSearch {
width: root.searchWidth
height: parent.height
active: root.searching && ShellState.notchSearch
// Laid out at full size so it does not reflow while the notch grows.
LauncherView {
id: launcher
width: ShellState.notchPillWidth + root.searchWidth
height: Math.max(root.band, parent.height)
notch: true
band: root.band
barInset: ShellState.notchPillWidth
maxBodyHeight: root.maxBodyHeight
active: root.searching
}
}
// 0 (critical) stays until dismissed. Each banner's time counts from its