1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-09 00:58:15 +03:00

provide struts based on screen gap

--following new norms and styles the struts
applying for Always Visible they now take into account
the screen edge margin and apply the same margin
also at their head thickness margin. If there is
much negative user feedback this might be reverted.

BUG:419731
This commit is contained in:
Michail Vourlakos 2021-01-08 00:33:28 +02:00
parent bb9564e11f
commit 069455be4e

View File

@ -313,10 +313,10 @@ Item{
var isCapableToHideScreenGap = root.screenEdgeMarginEnabled && plasmoid.configuration.hideFloatingGapForMaximized
if (root.behaveAsPlasmaPanel) {
return isCapableToHideScreenGap ? thicknessAsPanel : metrics.mask.screenEdge + thicknessAsPanel;
return isCapableToHideScreenGap ? thicknessAsPanel : (2*metrics.mask.screenEdge) + thicknessAsPanel;
}
var edgeThickness = isCapableToHideScreenGap ? 0 : metrics.mask.screenEdge;
var edgeThickness = isCapableToHideScreenGap ? 0 : metrics.mask.screenEdge * 2;
return edgeThickness + metrics.mask.thickness.maxNormalForItemsWithoutScreenEdge;
}
}