summaryrefslogtreecommitdiff
path: root/modules/drawers/Panels.qml
blob: 645af2163e265b91af8387ec8f352c55ee01b93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import "root:/config"
import "root:/modules/osd" as Osd
import "root:/modules/notifications" as Notifications
import Quickshell
import QtQuick

Item {
    id: root

    required property ShellScreen screen
    required property PersistentProperties visibilities

    readonly property Osd.Wrapper osd: osd
    readonly property Notifications.Wrapper notifications: notifications

    anchors.fill: parent
    anchors.margins: BorderConfig.thickness

    Osd.Wrapper {
        id: osd

        screen: root.screen
        visibility: visibilities.osd

        anchors.verticalCenter: parent.verticalCenter
        anchors.right: parent.right
    }

    Notifications.Wrapper {
        id: notifications

        screen: root.screen
        visibility: visibilities.notifications

        anchors.top: parent.top
        anchors.right: parent.right
    }
}