Commit 99b603af authored by Ismael Asensio's avatar Ismael Asensio
Browse files

kcm/kwindecoration: Fix window thumbnail sizes

Caused by a stray `units` context property that no longer exists.

(cherry picked from commit f6f027aa)
parent a30f6cc9
......@@ -12,7 +12,7 @@ import org.kde.kwin.private.kdecoration 1.0 as KDecoration
KCM.GridView {
function updateDecoration(item, marginTopLeft, marginBottomRight) {
var mainMargin = units.largeSpacing
var mainMargin = Kirigami.Units.largeSpacing
var shd = item.shadow
item.anchors.leftMargin = mainMargin + marginTopLeft - (shd ? shd.paddingLeft : 0)
item.anchors.rightMargin = mainMargin + marginBottomRight - (shd ? shd.paddingRight : 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment