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.
41 lines
1.0 KiB
QML
41 lines
1.0 KiB
QML
3 years ago
|
/*
|
||
|
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.pipewire 0.1 as PipeWire
|
||
|
import org.kde.taskmanager 0.1 as TaskManager
|
||
|
|
||
|
// opacity doesn't work in the root item
|
||
|
Item {
|
||
|
anchors.fill: parent
|
||
|
|
||
|
PipeWire.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
|
||
|
}
|
||
|
}*/
|
||
|
}
|
||
|
}
|