session: add scrim
This commit is contained in:
parent
6b1d5aaf98
commit
9637cf43a6
1 changed files with 19 additions and 5 deletions
|
|
@ -35,11 +35,11 @@ Variants {
|
||||||
intersection: Intersection.Xor
|
intersection: Intersection.Xor
|
||||||
|
|
||||||
regions: panels.children.map(c => regionComp.createObject(this, {
|
regions: panels.children.map(c => regionComp.createObject(this, {
|
||||||
x: c.x,
|
x: c.x,
|
||||||
y: c.y,
|
y: c.y,
|
||||||
width: c.width,
|
width: c.width,
|
||||||
height: c.height
|
height: c.height
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
anchors.top: true
|
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 {
|
Item {
|
||||||
id: background
|
id: background
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue