kcm/kwindecoration: Fix window thumbnail sizes

Caused by a stray `units` context property that no longer exists.
This commit is contained in:
Ismael Asensio 2021-08-18 23:07:30 +02:00
parent 1fbd99b572
commit f6f027aa10

View file

@ -12,7 +12,7 @@ import org.kde.kwin.private.kdecoration 1.0 as KDecoration
KCM.GridView { KCM.GridView {
function updateDecoration(item, marginTopLeft, marginBottomRight) { function updateDecoration(item, marginTopLeft, marginBottomRight) {
var mainMargin = units.largeSpacing var mainMargin = Kirigami.Units.largeSpacing
var shd = item.shadow var shd = item.shadow
item.anchors.leftMargin = mainMargin + marginTopLeft - (shd ? shd.paddingLeft : 0) item.anchors.leftMargin = mainMargin + marginTopLeft - (shd ? shd.paddingLeft : 0)
item.anchors.rightMargin = mainMargin + marginBottomRight - (shd ? shd.paddingRight : 0) item.anchors.rightMargin = mainMargin + marginBottomRight - (shd ? shd.paddingRight : 0)