disable all spacers for all separators

--this makes the spacers to overlap with
each other
pull/1/head
Michail Vourlakos 8 years ago
parent d59a43a7aa
commit 155e037d0f

@ -410,9 +410,9 @@ Item {
property bool neighbourSeparator: false;
//in case there is a neighbour internal separator
property int separatorSpace: (root.latteApplet && root.latteApplet.hasInternalSeparator
property int separatorSpace: ((root.latteApplet && root.latteApplet.hasInternalSeparator
&& (root.latteApplet.internalSeparatorPos === root.tasksCount-1) && index===root.latteAppletPos+1)
|| (neighbourSeparator && !container.isSeparator && !container.latteApplet) ? (2+root.iconMargin/2) : 0
|| neighbourSeparator) && !container.isSeparator && !container.latteApplet ? (2+root.iconMargin/2) : 0
property real nHiddenSize: (nScale > 0) ? (container.spacersMaxSize * nScale) + separatorSpace : separatorSpace
property real nScale: 0
@ -465,9 +465,9 @@ Item {
property bool neighbourSeparator: false;
//in case there is a neighbour internal separator
property int separatorSpace: (root.latteApplet && root.latteApplet.hasInternalSeparator
property int separatorSpace: ((root.latteApplet && root.latteApplet.hasInternalSeparator
&& root.latteApplet.internalSeparatorPos === 0 && index===root.latteAppletPos-1)
|| (neighbourSeparator && !container.isSeparator && !container.latteApplet) ? (2+root.iconMargin/2) : 0
|| neighbourSeparator) && !container.isSeparator && !container.latteApplet ? (2+root.iconMargin/2) : 0
property real nHiddenSize: (nScale > 0) ? (container.spacersMaxSize * nScale) + separatorSpace : separatorSpace
property real nScale: 0

@ -286,9 +286,9 @@ MouseArea{
property bool neighbourSeparator: false
//in case there is a neighbour separator
property int separatorSpace: (parabolicManager.internalSeparatorPos !== -1
&& parabolicManager.internalSeparatorPos === index-1)
|| (neighbourSeparator && !isSeparator) ? (2+root.iconMargin/2) : 0
property int separatorSpace: ((parabolicManager.internalSeparatorPos !== -1 && parabolicManager.internalSeparatorPos === index-1)
|| neighbourSeparator) && !isSeparator ?
(2+root.iconMargin/2) : 0
property real nHiddenSize: (nScale > 0) ? (mainItemContainer.spacersMaxSize * nScale) + separatorSpace : separatorSpace
property real nScale: 0
@ -308,6 +308,8 @@ MouseArea{
onItemIndexChanged: hiddenSpacerLeft.updateNeighbour();
}
Component.onCompleted: hiddenSpacerLeft.updateNeighbour();
Behavior on nScale {
enabled: !root.globalDirectRender
NumberAnimation { duration: 3 * mainItemContainer.animationTime }
@ -342,9 +344,9 @@ MouseArea{
property bool neighbourSeparator: false
//in case there is a neighbour separator
property int separatorSpace: (parabolicManager.internalSeparatorPos !== -1
&& parabolicManager.internalSeparatorPos === index+1)
|| (neighbourSeparator && !isSeparator) ? (2+root.iconMargin/2) : 0
property int separatorSpace: ((parabolicManager.internalSeparatorPos !== -1 && parabolicManager.internalSeparatorPos === index+1)
|| neighbourSeparator) && !isSeparator ?
(2+root.iconMargin/2) : 0
property real nHiddenSize: (nScale > 0) ? (mainItemContainer.spacersMaxSize * nScale) + separatorSpace : separatorSpace
property real nScale: 0
@ -365,6 +367,8 @@ MouseArea{
onItemIndexChanged: hiddenSpacerRight.updateNeighbour();
}
Component.onCompleted: hiddenSpacerRight.updateNeighbour();
Behavior on nScale {
enabled: !root.globalDirectRender
NumberAnimation { duration: 3 * mainItemContainer.animationTime }

Loading…
Cancel
Save