aerothemeplasma/plasma/shells/org.kde.plasma.desktop/contents/lockscreen/WallpaperFader.qml

32 lines
791 B
QML
Raw Normal View History

2024-01-20 02:08:06 +00:00
/*
SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.15
2024-08-09 01:20:25 +00:00
import Qt5Compat.GraphicalEffects
2024-01-20 02:08:06 +00:00
Item {
id: wallpaperFader
property alias source: wallpaperBlur.source
property real factor: 1
FastBlur { /* Forced by KDE for some reason to be able to show the background */
id: wallpaperBlur
anchors.fill: parent
radius: 0
}
ShaderEffect {
id: wallpaperShader
anchors.fill: parent
supportsAtlasTextures: true
property var source: ShaderEffectSource {
sourceItem: wallpaperBlur
live: true
hideSource: true
textureMirroring: ShaderEffectSource.NoMirroring
}
}
}