From f64f5107bb671b24741ab9562790e2457bf9b483 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 8 Sep 2019 05:14:06 +0300 Subject: [PATCH] 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 --- containment/package/contents/ui/applet/ItemWrapper.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containment/package/contents/ui/applet/ItemWrapper.qml b/containment/package/contents/ui/applet/ItemWrapper.qml index 4323c03ed..9a83ed575 100644 --- a/containment/package/contents/ui/applet/ItemWrapper.qml +++ b/containment/package/contents/ui/applet/ItemWrapper.qml @@ -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)