From cccde09f3db724a5766976114c26fef391202c37 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Mon, 27 Dec 2021 18:02:41 -0500 Subject: [PATCH] taskswitcher: Remove QQC2.Control from Task to avoid touch conflicts --- .../mobileshell/qml/taskswitcher/Task.qml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/components/mobileshell/qml/taskswitcher/Task.qml b/components/mobileshell/qml/taskswitcher/Task.qml index 6e53f8a4..3f1aa4a3 100644 --- a/components/mobileshell/qml/taskswitcher/Task.qml +++ b/components/mobileshell/qml/taskswitcher/Task.qml @@ -169,21 +169,15 @@ Item { } // app preview - QQC2.Control { + Rectangle { id: appView Layout.preferredWidth: delegate.previewWidth Layout.preferredHeight: delegate.previewHeight Layout.maximumWidth: delegate.previewWidth Layout.maximumHeight: delegate.previewHeight - // prevent thumbnails from "leaking" out of the control + color: PlasmaCore.Theme.backgroundColor clip: true - - leftPadding: 0 - rightPadding: 0 - topPadding: 0 - bottomPadding: 0 - transform: Scale { origin.x: item.width / 2 origin.y: item.height / 2 @@ -191,15 +185,14 @@ Item { yScale: delegate.scale } - background: Rectangle { - color: PlasmaCore.Theme.backgroundColor - } - - contentItem: Item { + Item { id: item + anchors.fill: parent // app icon (behind window preview in-case it doesn't load) TaskIcon { + // decrease the opacity faster + opacity: delegate.opacity anchors.centerIn: parent }