summaryrefslogtreecommitdiff
path: root/modules/drawers/Backgrounds.qml
blob: 94d8deee51f2dfaf7c71fdb9a09de556c43841a5 (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
import "root:/services"
import "root:/config"
import "root:/modules/osd" as Osd
import "root:/modules/notifications" as Notifications
import Quickshell
import QtQuick
import QtQuick.Shapes

Shape {
    id: root

    required property Panels panels

    anchors.fill: parent
    anchors.margins: BorderConfig.thickness
    preferredRendererType: Shape.CurveRenderer
    opacity: Colours.transparency.enabled ? Colours.transparency.base : 1

    Osd.Background {
        wrapper: panels.osd

        startX: root.width
        startY: (root.height - panels.osd.height) / 2
    }

    Notifications.Background {
        wrapper: panels.notifications

        startX: root.width
        startY: 0
    }
}