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:
parent
afb5217fe8
commit
20994f9bdf
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user