diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 16:30:53 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 16:30:53 +1000 |
| commit | ad7c6ea98e4588172398669bb8b7939999c7f121 (patch) | |
| tree | 29cf2fb3e7ccd3884b83f97b7f457be1311ebed0 /modules/drawers/Backgrounds.qml | |
| parent | notifs: better sliding (diff) | |
| download | caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.tar.gz caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.tar.bz2 caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.zip | |
refactor: move to single window
Diffstat (limited to 'modules/drawers/Backgrounds.qml')
| -rw-r--r-- | modules/drawers/Backgrounds.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/drawers/Backgrounds.qml b/modules/drawers/Backgrounds.qml new file mode 100644 index 0000000..70fd48f --- /dev/null +++ b/modules/drawers/Backgrounds.qml @@ -0,0 +1,24 @@ +import "root:/services" +import "root:/config" +import "root:/modules/osd" as Osd +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 + } +} |