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.bottom: thumbSource.bottom
|
||||||
anchors.bottomMargin: -Math.round(height / 4)
|
anchors.bottomMargin: -Math.round(height / 4)
|
||||||
visible: !thumb.activeHidden && !activeDragHandler.active
|
visible: !thumb.activeHidden && !activeDragHandler.active
|
||||||
|
PC3.Label {
|
||||||
|
|
||||||
PlasmaExtras.ShadowedLabel {
|
|
||||||
id: caption
|
id: caption
|
||||||
visible: thumb.windowTitleVisible
|
visible: thumb.windowTitleVisible
|
||||||
width: cell.width
|
width: cell.width
|
||||||
maximumLineCount: 1
|
maximumLineCount: 1
|
||||||
anchors.top: parent.bottom
|
anchors.top: parent.bottom
|
||||||
|
anchors.topMargin: Kirigami.Units.largeSpacing
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
text: thumb.window.caption
|
text: thumb.window.caption
|
||||||
|
color: Kirigami.Theme.textColor
|
||||||
textFormat: Text.PlainText
|
textFormat: Text.PlainText
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
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