diff --git a/panels/dock/taskmanager/package/AppItem.qml b/panels/dock/taskmanager/package/AppItem.qml index f4233a7fb..10787071e 100644 --- a/panels/dock/taskmanager/package/AppItem.qml +++ b/panels/dock/taskmanager/package/AppItem.qml @@ -79,8 +79,10 @@ Item { } Control { - anchors.fill: parent id: appItem + width: root.useColumnLayout ? parent.width : hoverBackground.width + height: root.useColumnLayout ? hoverBackground.height : parent.height + anchors.centerIn: parent implicitWidth: root.titleActive ? (root.iconSize + hoverBackground.horizontalSpacing + titleLoader.width) : iconContainer.width visible: !root.Drag.active // When in dragging, hide app item background: AppItemBackground { @@ -119,6 +121,10 @@ Item { anchors.left: parent.left anchors.horizontalCenter: undefined } + PropertyChanges { + target: iconContainer + anchors.leftMargin: hoverBackground.horizontalSpacing + } }, State { name: "nonTitleActive" diff --git a/panels/dock/taskmanager/package/AppItemBackground.qml b/panels/dock/taskmanager/package/AppItemBackground.qml index dbfe39503..f6a7589b2 100644 --- a/panels/dock/taskmanager/package/AppItemBackground.qml +++ b/panels/dock/taskmanager/package/AppItemBackground.qml @@ -31,6 +31,12 @@ AppletItemBackground { crystal: ("transparent") } normalDark: normal + pressed { + crystal: Qt.rgba(1.0, 1.0, 1.0, 0.25) + } + pressedDark { + crystal: Qt.rgba(1.0, 1.0, 1.0, 0.25) + } hovered { crystal: Qt.rgba(1.0, 1.0, 1.0, 0.15) }