From 6f2742d2ac8cb443d72f27a65a07542682383b43 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 21 Nov 2020 15:04:36 -0500 Subject: [PATCH] Improve performance of blur on lockscreen --- look-and-feel/contents/lockscreen/LockScreen.qml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/look-and-feel/contents/lockscreen/LockScreen.qml b/look-and-feel/contents/lockscreen/LockScreen.qml index 79b10702..8a4c9fe6 100644 --- a/look-and-feel/contents/lockscreen/LockScreen.qml +++ b/look-and-feel/contents/lockscreen/LockScreen.qml @@ -60,23 +60,19 @@ PlasmaCore.ColorScope { cached: true anchors.fill: parent source: wallpaper - visible: true + radius: 50 + opacity: 0 property bool doBlur: notificationsShown || isPinDrawerOpen() // only blur once animation finished for performance Behavior on doBlur { NumberAnimation { target: blur - property: "radius" + property: "opacity" duration: 1000 - to: blur.doBlur ? 0 : 50 + to: blur.doBlur ? 0 : 1 easing.type: Easing.InOutQuad } - PropertyAction { - target: blur - property: "visible" - value: blur.doBlur - } } }