Commit 6f2742d2 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Improve performance of blur on lockscreen

parent 57df5430
......@@ -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
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment