mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue