lockscreen: Use simpler logic for blur

This commit is contained in:
Devin Lin 2022-06-28 12:45:48 -04:00
parent ba597e1de2
commit 6824e2d2b9

View file

@ -10,16 +10,13 @@ FastBlur {
id: fastBlur id: fastBlur
cached: true cached: true
radius: 50 radius: 50
opacity: 0
property bool blur property bool blur
opacity: blur ? 1 : 0
Behavior on blur { Behavior on opacity {
NumberAnimation { NumberAnimation {
target: fastBlur
property: "opacity"
duration: 1000 duration: 1000
to: fastBlur.blur ? 0 : 1
easing.type: Easing.InOutQuad easing.type: Easing.InOutQuad
} }
} }