use all floating screen gaps for Fitt's Law

pull/11/head
Michail Vourlakos 5 years ago
parent f6b8ed139d
commit 074d9efee1

@ -33,23 +33,16 @@ Loader {
sourceComponent: MouseArea{
id: mainArea
width: root.isHorizontal ? length : localThickness + root.localScreenEdgeMargin
height: root.isVertical ? length : localThickness + root.localScreenEdgeMargin
readonly property int localThickness: (root.isHovered ? (root.iconSize + root.thickMargins)*root.zoomFactor : (root.iconSize + root.thickMargins))
width: {
if (root.isHorizontal) {
return useAllLayouts ? root.maxLength : root.realPanelLength;
} else {
return localThickness + root.localScreenEdgeMargin;
readonly property int length: {
if (screenEdgeMarginEnabled && plasmoid.configuration.fittsLawIsRequested) {
return root.isHorizontal ? root.width : root.height;
}
}
height: {
if (root.isVertical) {
return useAllLayouts ? root.maxLength : root.realPanelLength;
} else {
return localThickness + root.localScreenEdgeMargin;
}
return useAllLayouts ? root.maxLength : root.realPanelLength;
}
hoverEnabled: true

Loading…
Cancel
Save