Warning, /plasma/plasma-workspace/wallpapers/image/imagepackage/contents/ui/mediacomponent/BaseMediaComponent.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org> 0003 SPDX-FileCopyrightText: 2014 Sebastian Kügler <sebas@kde.org> 0004 SPDX-FileCopyrightText: 2014 Kai Uwe Broulik <kde@privat.broulik.de> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 import QtQuick 0010 import QtQuick.Controls 0011 0012 Rectangle { 0013 id: backgroundColor 0014 0015 color: "black" 0016 z: -2 0017 0018 property bool blur: false 0019 required property url source 0020 property int fillMode 0021 required property size sourceSize 0022 0023 /** 0024 * This defines the item that will be blurred and used in the background 0025 */ 0026 property var blurSource 0027 readonly property bool blurEnabled: backgroundColor.blur 0028 && (backgroundColor.fillMode === Image.PreserveAspectFit || backgroundColor.fillMode === Image.Pad) 0029 0030 layer.enabled: StackView.status !== StackView.Active && StackView.status !== StackView.Deactivating 0031 0032 Loader { 0033 anchors.fill: parent 0034 active: blurEnabled 0035 visible: active 0036 z: 0 0037 source: "BlurComponent.qml" 0038 } 0039 }