shift-shell/look-and-feel/contents/lockscreen/WallpaperBlur.qml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
511 B
QML
Raw Normal View History

/*
* SPDX-FileCopyrightText: 2021-2022 Devin Lin <devin@kde.org>
* SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.12
import QtGraphicalEffects 1.12
FastBlur {
id: fastBlur
cached: true
radius: 50
opacity: 0
property bool blur
Behavior on blur {
NumberAnimation {
target: fastBlur
property: "opacity"
duration: 1000
to: fastBlur.blur ? 0 : 1
easing.type: Easing.InOutQuad
}
}
}