tabbox/switchers/thumbnail_grid: refine icon positioning

This way it won't overlap the label when using a font with unusual
metrics.

BUG: 473690
This commit is contained in:
Nate Graham 2023-08-30 15:17:26 -06:00
parent 1d1981b0f4
commit 996730d310

View file

@ -154,7 +154,7 @@ KWin.TabBoxSwitcher {
Kirigami.Icon {
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.bottom
anchors.verticalCenterOffset: Math.round(-columnLayout.spacing/2)
anchors.verticalCenterOffset: Math.round(Math.round(-thumbnailGridView.iconSize / 4))
width: thumbnailGridView.iconSize
height: thumbnailGridView.iconSize