You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
latte-dock/plasmoid/package/contents/ui/previews/PipeWireThumbnail.5.25.qml

40 lines
999 B
QML

/*
SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.15
import QtQuick.Window 2.15
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.taskmanager 0.1 as TaskManager
// opacity doesn't work in the root item
Item {
anchors.fill: parent
TaskManager.PipeWireSourceItem {
id: pipeWireSourceItem
enabled: false // Must be set in pipewiresourceitem.cpp so opacity animation can work
visible: waylandItem.nodeId > 0
nodeId: waylandItem.nodeId
anchors.fill: parent
opacity: enabled ? 1 : 0
TaskManager.ScreencastingRequest {
id: waylandItem
uuid: !windowsPreviewDlg.visible ? "" : thumbnailSourceItem.winId
}
/*Behavior on opacity {
OpacityAnimator {
duration: PlasmaCore.Units.longDuration
easing.type: Easing.OutCubic
}
}*/
}
}