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

+10 -3
View File
@@ -19,7 +19,11 @@ PanelWindow {
readonly property real screenWidth:screen ? screen.width : 1920
readonly property real screenHeight:screen ? screen.height : 1080
implicitWidth:Math.round(surface.width)
implicitHeight:Math.round(BarDrawers.bottom+surface.contentHeight)
// Notch mode: no bar to hang from, so it drops from the screen's top edge
// in the notch's shape, colour and speeds.
readonly property bool notch:ShellState.notchMode
readonly property real top:notch ? 0 : BarDrawers.bottom
implicitHeight:Math.round(top+surface.contentHeight)
visible:ShellState.wallpaperPickerOpen || surface.shown
color:Theme.transparent
exclusionMode:ExclusionMode.Ignore
@@ -107,10 +111,13 @@ PanelWindow {
BarDrawer {
id:surface
objectName:"wallpaperPickerSurface"
y:BarDrawers.bottom
y:root.top
open:ShellState.wallpaperPickerOpen
contentWidth:Math.min(1240,root.screenWidth-2*(BarDrawers.margin+BarDrawers.radius+ear))
contentHeight:Math.min(640,root.screenHeight-BarDrawers.bottom-40)
contentHeight:Math.min(640,root.screenHeight-root.top-40)
fillColor:root.notch ? Theme.notchOpenFill : Qt.alpha(Theme.surface,Theme.glassOpacity)
openDuration:root.notch ? Theme.notchOpenDuration*2 : Theme.duration*1.8
closeDuration:root.notch ? Theme.notchCloseDuration*1.3 : Theme.duration
drawerId:"wallpaper"
screenName:root.screen ? root.screen.name : ""
screenX:(root.screenWidth-width)/2