mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-05 05:47:26 +03:00
remove margins,!canbehovered applets in screen edges
--when an applet can not be hovered meaning to use the parabolic effect and that applet is at the far screen edge then margins can be disabled for this applet in order to look exactly touching the screen edge and at the same feel right following Fitt's Law
This commit is contained in:
parent
35d8b98abf
commit
c3f9177ec9
@ -123,7 +123,7 @@ Item{
|
||||
(root.inFullJustify && atScreenEdge && !parabolicEffectMarginsEnabled ? edgeLengthMargins : localLengthMargins) //Fitt's Law
|
||||
|
||||
property int localLengthMargins: isSeparator || !communicator.lengthMarginsEnabled ? 0 : appletItem.lengthAppletFullMargins
|
||||
property int edgeLengthMargins: isSeparator || !communicator.lengthMarginsEnabled || !isSquare ? 0 : appletItem.lengthAppletIntMargin * 2
|
||||
property int edgeLengthMargins: isSeparator || !communicator.lengthMarginsEnabled || !canBeHovered ? 0 : appletItem.lengthAppletIntMargin * 2
|
||||
|
||||
property real scaledWidth: zoomScaleWidth * (layoutWidth + marginWidth)
|
||||
property real scaledHeight: zoomScaleHeight * (layoutHeight + marginHeight)
|
||||
|
Loading…
x
Reference in New Issue
Block a user