Warning, /plasma/latte-dock/plasmoid/package/contents/ui/previews/PipeWireThumbnail.5.26.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 import QtQuick 2.15
0007 import QtQuick.Window 2.15
0008 
0009 import org.kde.plasma.core 2.0 as PlasmaCore
0010 import org.kde.pipewire 0.1 as PipeWire
0011 import org.kde.taskmanager 0.1 as TaskManager
0012 
0013 // opacity doesn't work in the root item
0014 Item {
0015     anchors.fill: parent
0016 
0017     PipeWire.PipeWireSourceItem {
0018         id: pipeWireSourceItem
0019 
0020         enabled: false // Must be set in pipewiresourceitem.cpp so opacity animation can work
0021         visible: waylandItem.nodeId > 0
0022         nodeId: waylandItem.nodeId
0023 
0024         anchors.fill: parent
0025 
0026         opacity: enabled ? 1 : 0
0027 
0028         TaskManager.ScreencastingRequest {
0029             id: waylandItem
0030             uuid: !windowsPreviewDlg.visible ? "" : thumbnailSourceItem.winId
0031         }
0032 
0033         /*Behavior on opacity {
0034             OpacityAnimator {
0035                 duration: PlasmaCore.Units.longDuration
0036                 easing.type: Easing.OutCubic
0037             }
0038         }*/
0039     }
0040 }