mirror of
https://github.com/Sn3akyy1/lucid.git
synced 2026-11-20 21:52:29 +03:00
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:
+4
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user