Commit d983aeeb authored by Marco Martin's avatar Marco Martin
Browse files

initial support for pipewire thumbnails

parent 0d438d87
...@@ -87,41 +87,56 @@ Item { ...@@ -87,41 +87,56 @@ Item {
Rectangle { Rectangle {
id: background id: background
PlasmaComponents.ToolButton {
z: 99
icon.name: "window-close"
icon.width: units.iconSizes.medium
icon.height: units.iconSizes.medium
anchors {
top: parent.top
right: parent.right
}
onClicked: {
slideAnim.to = -background.width*2;
slideAnim.running = true;
}
}
width: parent.width width: parent.width
height: parent.height height: parent.height
radius: units.smallSpacing radius: units.smallSpacing
opacity: 0.9 * (1-Math.abs(x)/width) color: theme.backgroundColor
PlasmaCore.IconItem { opacity: 1 * (1-Math.abs(x)/width)
anchors.centerIn: parent ColumnLayout {
width: Math.min(parent.width, parent.height) / 2
height: width
usesPlasmaTheme: false
source: model.decoration
}
PlasmaComponents.Label {
anchors { anchors {
bottom: parent.bottom fill: parent
left: parent.left
right: parent.right
margins: units.smallSpacing margins: units.smallSpacing
} }
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight RowLayout {
text: model.display Layout.fillWidth: true
Layout.maximumHeight: units.gridUnit
PlasmaCore.IconItem {
Layout.fillHeight: true
Layout.preferredWidth: height
usesPlasmaTheme: false
source: model.decoration
}
PlasmaComponents.Label {
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
text: model.display
color: theme.textColor
}
PlasmaComponents.ToolButton {
z: 99
icon.name: "window-close"
icon.width: units.iconSizes.medium
icon.height: units.iconSizes.medium
onClicked: {
slideAnim.to = -background.width*2;
slideAnim.running = true;
}
}
}
TaskManager.PipeWireSourceItem {
Layout.fillWidth: true
Layout.fillHeight: true
//visible: waylandItem.nodeId > 0
visible: true
nodeId: waylandItem.nodeId
TaskManager.ScreencastingItem {
id: waylandItem
uuid: model.WinIdList[0]
}
}
} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment