From 07dcede8203eeba7ab772278a1c075701732a2ac Mon Sep 17 00:00:00 2001 From: Akseli Lahtinen Date: Wed, 26 Jun 2024 16:00:54 +0000 Subject: [PATCH] WindowHeapDelegate: Label text background Give label text background color to make it easier to distinct from the background. BUG:483016 --- src/plugins/private/qml/WindowHeapDelegate.qml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/plugins/private/qml/WindowHeapDelegate.qml b/src/plugins/private/qml/WindowHeapDelegate.qml index 5713ca25e2..82cbc702d6 100644 --- a/src/plugins/private/qml/WindowHeapDelegate.qml +++ b/src/plugins/private/qml/WindowHeapDelegate.qml @@ -166,20 +166,27 @@ Item { anchors.bottom: thumbSource.bottom anchors.bottomMargin: -Math.round(height / 4) visible: !thumb.activeHidden && !activeDragHandler.active - - - PlasmaExtras.ShadowedLabel { + PC3.Label { id: caption visible: thumb.windowTitleVisible width: cell.width maximumLineCount: 1 anchors.top: parent.bottom + anchors.topMargin: Kirigami.Units.largeSpacing anchors.horizontalCenter: parent.horizontalCenter elide: Text.ElideRight text: thumb.window.caption + color: Kirigami.Theme.textColor textFormat: Text.PlainText horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter + background: Rectangle { + anchors.centerIn: parent + height: parent.contentHeight + Kirigami.Units.gridUnit + width: parent.contentWidth + Kirigami.Units.gridUnit + color: Kirigami.Theme.backgroundColor + radius: Kirigami.Units.cornerRadius + } } }