From 5ec077bb339a28ce3a77050fc23fdfcfc7e1e193 Mon Sep 17 00:00:00 2001 From: Sn3aky <167647965+Sn3akyy1@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:50:58 +0100 Subject: [PATCH] Bar: drawn over the launcher standing on it, so the two frost alike Hyprland blurs each layer from what is already painted under it. The launcher standing on a bottom bar was drawn after the bar, so its glass frosted the bar's bright icons and its foot sat a clear step off the strip (19-21 levels in the rig). Now the dock stays on the overlay layer while the bar holds the bottom edge, and the bar goes up to the overlay as the launcher opens, landing above it: the launcher frosts the windows behind it, the bar frosts the launcher's edge, which is the same glass. The step drops to 4-11. Hyprland's layer fades do not touch the bar on the switch (85 frames flat with the user's animations); over a fullscreen window nothing changes. Co-Authored-By: Claude Opus 5.5 --- luciddocks/Dock.qml | 6 ++++-- shell.qml | 8 +++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/luciddocks/Dock.qml b/luciddocks/Dock.qml index 3f0fa70..6f037e1 100644 --- a/luciddocks/Dock.qml +++ b/luciddocks/Dock.qml @@ -2295,8 +2295,10 @@ PanelWindow { }) WlrLayershell.keyboardFocus: dockWindow.menuOpen ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None // over a fullscreen window hyprland fades the top layer out, so a closing - // launcher keeps the overlay until it has shrunk and gone down - WlrLayershell.layer: (dockWindow.menuOpen || dockWindow.morphing) ? WlrLayer.Overlay : WlrLayer.Top + // launcher keeps the overlay until it has shrunk and gone down. standing on the + // bar it stays there throughout, so the bar, lifted to the overlay as the + // launcher opens, lands above it (see the bar's layer) + WlrLayershell.layer: (dockWindow.menuOpen || dockWindow.morphing || dockWindow.onBar) ? WlrLayer.Overlay : WlrLayer.Top color: "transparent" implicitWidth: Math.max(dockWindow.maxDockWidth, dockWindow.menuWidth) implicitHeight: dockWindow.menuMaxHeight + dockWindow.dragHeadroom diff --git a/shell.qml b/shell.qml index 4871bf8..7b72139 100644 --- a/shell.qml +++ b/shell.qml @@ -1589,7 +1589,13 @@ ShellRoot { interval: Theme.barDurEnter + Theme.barMs(80) } - WlrLayershell.layer: bar.fullscreenHere && (bar.panelUp || panelDownTimer.running) ? WlrLayer.Overlay : WlrLayer.Top + // a layer drawn later frosts what the earlier ones painted. under the bar, + // the launcher standing on it frosted the bar's icons and stood a shade off + // the strip; drawn after it, the bar frosts only the launcher's edge, which is + // the same glass, and the launcher frosts the windows behind it + readonly property bool overLauncher: bar.primary && dock.onBar && (dock.menuOpen || dock.morphing) + + WlrLayershell.layer: (bar.fullscreenHere && (bar.panelUp || panelDownTimer.running)) || bar.overLauncher ? WlrLayer.Overlay : WlrLayer.Top // the Start module linked to the Apps module lights as the first icon of its // row. the link as set, on the full bar too, which draws no joins