PlasmoidHeader: re-add backgroundMetrics

accidentally removed in previous commit
This commit is contained in:
Noah Davis 2021-07-10 14:33:16 -04:00
parent 65360e9841
commit f7f74d2fe4

View File

@ -80,5 +80,15 @@ import "private" as Private
}
return borders
}
Private.BackgroundMetrics {
id: backgroundMetrics
function getMargin(margin) {
if (!hasInset) {
return -headingSvg.fixedMargins[margin];
} else {
return -backgroundMetrics.fixedMargins[margin] + backgroundMetrics.inset[margin]
}
}
}
}
}