diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-14 23:27:04 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-14 23:27:04 +0800 |
| commit | 9637cf43a6e8e5a805a92fd3243e2baadbca7950 (patch) | |
| tree | deec5b8fe8657edab9122af0d6250038f556393d /modules/drawers | |
| parent | dev: fix deprecated window width & height (diff) | |
| download | caelestia-shell-9637cf43a6e8e5a805a92fd3243e2baadbca7950.tar.gz caelestia-shell-9637cf43a6e8e5a805a92fd3243e2baadbca7950.tar.bz2 caelestia-shell-9637cf43a6e8e5a805a92fd3243e2baadbca7950.zip | |
session: add scrim
Diffstat (limited to 'modules/drawers')
| -rw-r--r-- | modules/drawers/Drawers.qml | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 5aa5b50..51374e9 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -35,11 +35,11 @@ Variants { intersection: Intersection.Xor regions: panels.children.map(c => regionComp.createObject(this, { - x: c.x, - y: c.y, - width: c.width, - height: c.height - })) + x: c.x, + y: c.y, + width: c.width, + height: c.height + })) } anchors.top: true @@ -55,6 +55,20 @@ Variants { } } + StyledRect { + anchors.fill: parent + opacity: visibilities.session ? 0.5 : 0 + color: Colours.palette.m3scrim + + Behavior on opacity { + NumberAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } + } + Item { id: background |