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 { ...@@ -60,23 +60,19 @@ PlasmaCore.ColorScope {
cached: true cached: true
anchors.fill: parent anchors.fill: parent
source: wallpaper source: wallpaper
visible: true radius: 50
opacity: 0
property bool doBlur: notificationsShown || isPinDrawerOpen() // only blur once animation finished for performance property bool doBlur: notificationsShown || isPinDrawerOpen() // only blur once animation finished for performance
Behavior on doBlur { Behavior on doBlur {
NumberAnimation { NumberAnimation {
target: blur target: blur
property: "radius" property: "opacity"
duration: 1000 duration: 1000
to: blur.doBlur ? 0 : 50 to: blur.doBlur ? 0 : 1
easing.type: Easing.InOutQuad 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