dock: pinned mode acts as screen split - bar shrinks, corners adjust, opaque background

This commit is contained in:
Damocles 2026-04-25 21:48:35 +02:00
parent c22eb51dcd
commit f501f977d1
9 changed files with 52 additions and 21 deletions

View file

@ -1,7 +1,7 @@
import QtQuick
import Quickshell
import Quickshell.Wayland
import "." as D
import "../services" as S
// Invisible 2px-wide PanelWindow at the right screen edge.
// When cursor enters, opens the dock in overlay mode.
@ -10,7 +10,7 @@ PanelWindow {
required property var screen
visible: !D.DockState.open
visible: !S.DockState.open
color: "transparent"
WlrLayershell.layer: WlrLayer.Overlay
@ -25,8 +25,8 @@ PanelWindow {
HoverHandler {
onHoveredChanged: {
if (hovered && !D.DockState.open)
D.DockState.openOverlay();
if (hovered && !S.DockState.open)
S.DockState.openOverlay();
}
}
}