Drop the wallpaper picker from the notch in notch mode

In notch mode the picker grows from the screen's top edge in the notch's
shape, with the notch's open fill and opening/closing speeds, and the
collapsed notch hides while it is up. Bar mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-12 17:37:41 +01:00
1 parent cc0bc0a72f
commit ea8fc29544
3 files changed
+17 -5

No files matched your search

+6 -1
View File
@@ -21,6 +21,10 @@ Item {
// "slide" unrolls out of the bar; "drop" falls into place and away
// downwards; "fade" fades in place; "shrink" grows from / shrinks to nothing.
property string style: "slide"
// Fill and timing; notch mode passes the notch's own.
property color fillColor: Qt.alpha(Theme.surface, Theme.glassOpacity)
property real openDuration: Theme.duration * 1.8
property real closeDuration: Theme.duration
readonly property bool unrolls: style === "slide"
property real progress: open ? 1 : 0
readonly property real revealed: unrolls ? Math.max(0, contentHeight * progress) : contentHeight
@@ -39,7 +43,7 @@ Item {
Behavior on progress {
NumberAnimation {
id: anim
duration: root.open ? Theme.duration * 1.8 : Theme.duration
duration: root.open ? root.openDuration : root.closeDuration
easing.type: Easing.BezierSpline
easing.bezierCurve: root.open ? [0.05, 0.7, 0.1, 1, 1, 1] : [0.3, 0, 0.8, 0.15, 1, 1]
}
@@ -77,6 +81,7 @@ Item {
bodyHeight: root.revealed
ear: BarDrawers.ear
attached: root.attached
fillColor: root.fillColor
}
Item {
id: hit