mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-25 15:47:43 +00:00
27 lines
511 B
QML
27 lines
511 B
QML
|
|
/*
|
||
|
|
* 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
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|