mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
lockscreen: Use simpler logic for blur
This commit is contained in:
parent
ba597e1de2
commit
6824e2d2b9
1 changed files with 2 additions and 5 deletions
|
|
@ -10,16 +10,13 @@ FastBlur {
|
||||||
id: fastBlur
|
id: fastBlur
|
||||||
cached: true
|
cached: true
|
||||||
radius: 50
|
radius: 50
|
||||||
opacity: 0
|
|
||||||
|
|
||||||
property bool blur
|
property bool blur
|
||||||
|
opacity: blur ? 1 : 0
|
||||||
|
|
||||||
Behavior on blur {
|
Behavior on opacity {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
target: fastBlur
|
|
||||||
property: "opacity"
|
|
||||||
duration: 1000
|
duration: 1000
|
||||||
to: fastBlur.blur ? 0 : 1
|
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue