diff --git a/applets/taskmanager/package/contents/ui/ToolTipInstance.qml b/applets/taskmanager/package/contents/ui/ToolTipInstance.qml --- a/applets/taskmanager/package/contents/ui/ToolTipInstance.qml +++ b/applets/taskmanager/package/contents/ui/ToolTipInstance.qml @@ -186,7 +186,9 @@ PlasmaCore.WindowThumbnail { anchors.fill: parent - anchors.margins: units.smallSpacing + // Not units.smallSpacing because then you get a frame-within-a-frame effect + // Not 0 because then it can cover up the entire tooltip effect + anchors.margins: 1 visible: !albumArtImage.visible && !thumbnailSourceItem.isMinimized winId: thumbnailSourceItem.winId @@ -197,6 +199,9 @@ source: albumArt anchors.fill: parent fillMode: Image.PreserveAspectCrop + // Not units.smallSpacing because then you get a frame-within-a-frame effect + // Not 0 because then it can cover up the entire tooltip effect + anchors.margins: 1 visible: albumArtImage.available layer.enabled: true opacity: 0.25 @@ -212,7 +217,8 @@ // also Image.Loading to prevent loading thumbnails just because the album art takes a split second to load readonly property bool available: status === Image.Ready || status === Image.Loading - height: thumbnail.height - playerControlsLoader.realHeight + height: albumArtBackground.height - playerControlsLoader.realHeight + anchors.top: albumArtBackground.top anchors.horizontalCenter: parent.horizontalCenter sourceSize: Qt.size(parent.width, parent.height) @@ -249,6 +255,11 @@ property real realHeight: item? item.realHeight : 0 anchors.fill: thumbnail + // Not units.smallSpacing because then you get a frame-within-a-frame effect + // Not 0 because then it can cover up the entire tooltip effect + anchors.leftMargin: 1 + anchors.rightMargin: 1 + anchors.bottomMargin: 1 sourceComponent: hasPlayer ? playerControlsComp : undefined }