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