Grow the launcher out of the notch like the notch panel

In notch mode the launcher now morphs from the collapsed notch with the
notch's own curve and open/close speeds: the shape stays solid, width
leads the height, and the search fades in once it is mostly open. The
notch's time and media fade out as it grows and back in as it closes,
and the pill stays hidden until the launcher has shrunk home. The pill's
contents move to NotchGlance so both can draw them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-14 14:46:39 +01:00
1 parent f65c475455
commit 52a0e29959
5 files changed
+126 -66

No files matched your search

+63
View File
@@ -0,0 +1,63 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Widgets
import "../services"
import "../theme"
// What the collapsed notch shows: the time, plus cover art and a small
// visualizer while audio plays. Shared by the pill and by the launcher, which
// fades it out as it grows out of the notch.
Row {
id: root
property bool playing: MediaService.playing
spacing: 10
ClippingRectangle {
visible: root.playing
anchors.verticalCenter: parent.verticalCenter
width: 22
height: 22
radius: 6
color: Theme.fill
Image {
anchors.fill: parent
source: MediaService.artwork
sourceSize: Qt.size(44, 44)
fillMode: Image.PreserveAspectCrop
asynchronous: true
}
}
Text {
anchors.verticalCenter: parent.verticalCenter
text: Qt.formatDateTime(clock.date, ConfigService.ready && !ConfigService.data.bar.clock.use24Hour ? "h:mm" : "HH:mm")
color: Theme.text
font.pixelSize: 14
font.weight: Font.DemiBold
font.features: {
"tnum": 1
}
}
Row {
visible: root.playing
anchors.verticalCenter: parent.verticalCenter
height: 16
spacing: 2
Repeater {
model: 8
Rectangle {
required property int index
// Every third Cava band, so the eight span the spectrum.
readonly property real level: CavaService.bars[index * 3] || 0
width: 3
height: Math.max(3, 16 * level)
y: 16 - height
radius: 1.5
color: Theme.accent
}
}
}
SystemClock {
id: clock
precision: SystemClock.Minutes
}
}
+2 -53
View File
@@ -1,7 +1,5 @@
pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Widgets
import "../components"
import "../core"
import "../services"
@@ -40,10 +38,6 @@ Item {
easing.bezierCurve: [0.2, 0, 0, 1, 1, 1]
}
}
SystemClock {
id: clock
precision: SystemClock.Minutes
}
Demand {
service: CavaService
counter: "widgetConsumers"
@@ -63,54 +57,9 @@ Item {
width: ShellState.notchPillWidth
height: root.height
}
Row {
id: content
NotchGlance {
anchors.centerIn: lead
spacing: 10
ClippingRectangle {
visible: root.playing
anchors.verticalCenter: parent.verticalCenter
width: 22
height: 22
radius: 6
color: Theme.fill
Image {
anchors.fill: parent
source: MediaService.artwork
sourceSize: Qt.size(44, 44)
fillMode: Image.PreserveAspectCrop
asynchronous: true
}
}
Text {
anchors.verticalCenter: parent.verticalCenter
text: Qt.formatDateTime(clock.date, ConfigService.ready && !ConfigService.data.bar.clock.use24Hour ? "h:mm" : "HH:mm")
color: Theme.text
font.pixelSize: 14
font.weight: Font.DemiBold
font.features: {
"tnum": 1
}
}
Row {
visible: root.playing
anchors.verticalCenter: parent.verticalCenter
height: 16
spacing: 2
Repeater {
model: 8
Rectangle {
required property int index
// Every third Cava band, so the eight span the spectrum.
readonly property real level: CavaService.bars[index * 3] || 0
width: 3
height: Math.max(3, 16 * level)
y: 16 - height
radius: 1.5
color: Theme.accent
}
}
}
playing: root.playing
}
MouseArea {
anchors.fill: parent