mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +00:00
Improve performance of blur on lockscreen
This commit is contained in:
parent
57df5430d6
commit
6f2742d2ac
1 changed files with 4 additions and 8 deletions
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue