WindowHeapDelegate: Label text background

Give label text background color to make it easier to distinct from the background.


BUG:483016
This commit is contained in:
Akseli Lahtinen 2024-06-26 16:00:54 +00:00
parent 4c86653cd5
commit 07dcede820

View file

@ -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
}
}
}