1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-29 17:47:23 +03:00

fix HeaderSettings spacing

This commit is contained in:
Michail Vourlakos 2020-05-15 10:31:20 +03:00
parent afb5217fe8
commit 20994f9bdf

View File

@ -38,6 +38,8 @@ Item {
readonly property bool inSettingsAdvancedMode: latteView && latteView.inSettingsAdvancedMode
readonly property int headMargin: spacing * 2
rotation: {
if (plasmoid.formFactor === PlasmaCore.Types.Horizontal) {
return 0;
@ -56,9 +58,9 @@ Item {
}
if (plasmoid.location === PlasmaCore.Types.LeftEdge) {
return visibilityManager.thicknessNormalOriginalValue + ruler.thickness + spacing * 2 - width/2 + height/2;
return visibilityManager.thicknessNormalOriginalValue + ruler.thickness + headMargin * 2 - width/2 + height/2;
} else if (plasmoid.location === PlasmaCore.Types.RightEdge) {
return spacing - width/2 + height/2;
return headMargin - width/2 + height/2;
}
}
@ -68,9 +70,9 @@ Item {
}
if (plasmoid.location === PlasmaCore.Types.BottomEdge) {
return spacing;
return headMargin;
} else if (plasmoid.location === PlasmaCore.Types.TopEdge) {
return parent.height - rearrangeBtn.height - spacing;
return parent.height - rearrangeBtn.height - headMargin;
}
}