forked from Shinonome/dots-hyprland
45 lines
1.2 KiB
QML
45 lines
1.2 KiB
QML
pragma ComponentBehavior: Bound
|
|
import qs
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import qs.modules.common.functions
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
|
|
Scope {
|
|
id: root
|
|
required property Component contentComponent
|
|
|
|
Loader {
|
|
active: PolkitService.active
|
|
sourceComponent: Variants {
|
|
model: Quickshell.screens
|
|
delegate: PanelWindow {
|
|
id: panelWindow
|
|
required property var modelData
|
|
screen: modelData
|
|
|
|
anchors {
|
|
top: true
|
|
left: true
|
|
right: true
|
|
bottom: true
|
|
}
|
|
|
|
color: "transparent"
|
|
WlrLayershell.namespace: "quickshell:polkit"
|
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
|
|
WlrLayershell.layer: WlrLayer.Overlay
|
|
exclusionMode: ExclusionMode.Ignore
|
|
|
|
Loader {
|
|
anchors.fill: parent
|
|
sourceComponent: root.contentComponent
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|