Warning, /plasma/latte-dock/plasmoid/package/contents/ui/previews/PipeWireThumbnail.5.25.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.taskmanager 0.1 as TaskManager 0011 0012 // opacity doesn't work in the root item 0013 Item { 0014 anchors.fill: parent 0015 0016 TaskManager.PipeWireSourceItem { 0017 id: pipeWireSourceItem 0018 0019 enabled: false // Must be set in pipewiresourceitem.cpp so opacity animation can work 0020 visible: waylandItem.nodeId > 0 0021 nodeId: waylandItem.nodeId 0022 0023 anchors.fill: parent 0024 0025 opacity: enabled ? 1 : 0 0026 0027 TaskManager.ScreencastingRequest { 0028 id: waylandItem 0029 uuid: !windowsPreviewDlg.visible ? "" : thumbnailSourceItem.winId 0030 } 0031 0032 /*Behavior on opacity { 0033 OpacityAnimator { 0034 duration: PlasmaCore.Units.longDuration 0035 easing.type: Easing.OutCubic 0036 } 0037 }*/ 0038 } 0039 }