follow Fitt's Law when shrinking thickness

--when the latte panel behavesAsPlasmaPanel and
the user has enabled also shrinking the thickness
then Fitt's Law can be followed.
pull/2/head
Michail Vourlakos 7 years ago
parent 7645dc9007
commit 43a6e18617

@ -201,8 +201,8 @@ DragDrop.DropArea {
//decouple iconMargin which now is used only for length calculations with thickMargins
//which are used for thickness calculations
property int thickMarginBase: shrinkThickMargins ? 1 : Math.ceil(0.06 * iconSize)
property int thickMarginHigh: shrinkThickMargins ? 1 : Math.ceil(0.06 * iconSize)
property int thickMarginBase: shrinkThickMargins ? (behaveAsPlasmaPanel ? 0 : 1) : Math.ceil(0.06 * iconSize)
property int thickMarginHigh: shrinkThickMargins ? (behaveAsPlasmaPanel ? 0 : 1) : Math.ceil(0.06 * iconSize)
property int thickMargin: thickMarginBase + thickMarginHigh
//it is used in order to not break the calculations for the thickness placement

Loading…
Cancel
Save