mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-30 14:50:12 +03:00
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.
This commit is contained in:
parent
3c5b059fce
commit
96b1beee18
@ -194,8 +194,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…
x
Reference in New Issue
Block a user