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 @@ -180,13 +180,20 @@ PlasmaComponents.Highlight { anchors.fill: parent + // Don't go under the player controls bar, when it's visible + anchors.bottomMargin: playerControlsLoader.realHeight visible: hoverHandler.containsMouse pressed: hoverHandler.containsPress } 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 + // Don't go under the player controls bar, when it's visible + // The +1 is so that at least one pixel of the highlight is visible on the bottom + anchors.bottomMargin: playerControlsLoader.realHeight + 1 visible: !albumArtImage.visible && !thumbnailSourceItem.isMinimized winId: thumbnailSourceItem.winId @@ -197,6 +204,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 +222,9 @@ // 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 + // The -1 is so that at least one pixel of the highlight is visible on the bottom + height: albumArtBackground.height - playerControlsLoader.realHeight - 1 + anchors.top: albumArtBackground.top anchors.horizontalCenter: parent.horizontalCenter sourceSize: Qt.size(parent.width, parent.height)