From 9637cf43a6e8e5a805a92fd3243e2baadbca7950 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 14 May 2025 23:27:04 +0800 Subject: session: add scrim --- modules/drawers/Drawers.qml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'modules/drawers') 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 -- cgit v1.2.3-freya