dock: pinned mode acts as screen split - bar shrinks, corners adjust, opaque background
This commit is contained in:
parent
c22eb51dcd
commit
f501f977d1
9 changed files with 52 additions and 21 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue