tabbox: make Thumbnail Grid active item's text bold

This makes it follow a common KDE convention of using bold text to
indicate which item in a set is active or current. Doing it here too
helps direct visual attention to the selected item, improving speed of
interaction.
This commit is contained in:
Nate Graham 2023-05-08 15:46:10 +02:00
parent 3ca1fc800d
commit 07279bf541

View file

@ -184,6 +184,7 @@ KWin.TabBoxSwitcher {
PlasmaComponents3.Label {
Layout.fillWidth: true
text: model.caption
font.weight: thumbnailGridItem.isCurrentItem ? Font.Bold : Font.Normal
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
textFormat: Text.PlainText