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 <noreply@anthropic.com>
This commit is contained in:
Sn3aky
2026-11-10 12:50:58 +01:00
Unverified
parent c3c8aeea5c
commit 5ec077bb33
2 changed files with 11 additions and 3 deletions
+4 -2
View File
@@ -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
+7 -1
View File
@@ -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