simple dashboard
only has mpris
This commit is contained in:
parent
556a24774a
commit
0a33022c6a
6 changed files with 111 additions and 27 deletions
41
modules/drawers/Drawers.qml
Normal file
41
modules/drawers/Drawers.qml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import "dashboard"
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
||||
PanelWindow {
|
||||
id: parentWindow
|
||||
|
||||
anchors.top: true
|
||||
anchors.left: true
|
||||
anchors.right: true
|
||||
anchors.bottom: true
|
||||
|
||||
color: 'transparent'
|
||||
|
||||
// WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
|
||||
mask: Region {
|
||||
width: parentWindow.width
|
||||
height: parentWindow.height
|
||||
intersection: Intersection.Xor
|
||||
regions: [
|
||||
Region {
|
||||
x: dashboard.x
|
||||
y: dashboard.y
|
||||
width: dashboard.width
|
||||
height: dashboard.height
|
||||
intersection: Intersection.Subtract
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Dashboard {
|
||||
id: dashboard
|
||||
x: parentWindow.width / 2 - dashboard.width / 2
|
||||
edge: Qt.TopEdge
|
||||
padding: 20
|
||||
margins: 200
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue