From 4c64acf5891a2f02729e3362449017972c59dd39 Mon Sep 17 00:00:00 2001 From: reionwong Date: Thu, 29 Jul 2021 02:57:19 +0800 Subject: [PATCH] Add blur animation --- screenlocker/qml/LockScreen.qml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/screenlocker/qml/LockScreen.qml b/screenlocker/qml/LockScreen.qml index fad1d5e..c04ddb3 100644 --- a/screenlocker/qml/LockScreen.qml +++ b/screenlocker/qml/LockScreen.qml @@ -55,12 +55,21 @@ Item { FastBlur { id: wallpaperBlur anchors.fill: parent - radius: 64 + radius: 0 source: wallpaperImage cached: true visible: true } + NumberAnimation { + id: blurAni + target: wallpaperBlur + property: "radius" + duration: 300 + from: 10 + to: 64 + } + Accounts.UserAccount { id: currentUser } @@ -79,6 +88,8 @@ Item { Component.onCompleted: { timeLabel.updateInfo() dateLabel.updateInfo() + + blurAni.start() } Item {