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:
parent
4c86653cd5
commit
07dcede820
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue