mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
remove more trebbling from parabolic effect
--disable all Math.round(...) from parabolic effect calculations because this was enough in order to miss just one pixel that was able to create a small trebbling
This commit is contained in:
parent
3a9a83634f
commit
e68a9e78e1
@ -369,9 +369,9 @@ Item {
|
||||
if (container.showZoomed && root.isVertical)
|
||||
return root.statesLineSize + root.thickMargin + root.iconSize + 1;
|
||||
else
|
||||
return Math.round(latteApplet.tasksWidth);
|
||||
return latteApplet.tasksWidth;
|
||||
} else {
|
||||
return Math.round(scaledWidth);
|
||||
return scaledWidth;
|
||||
}
|
||||
}
|
||||
|
||||
@ -391,9 +391,9 @@ Item {
|
||||
if (container.showZoomed && root.isHorizontal)
|
||||
return root.statesLineSize + root.thickMargin + root.iconSize + 1;
|
||||
else
|
||||
return Math.round(latteApplet.tasksHeight);
|
||||
return latteApplet.tasksHeight;
|
||||
} else {
|
||||
return Math.round(scaledHeight);
|
||||
return scaledHeight;
|
||||
}
|
||||
}
|
||||
|
||||
@ -642,9 +642,9 @@ Item {
|
||||
}
|
||||
|
||||
if (container.isInternalViewSplitter)
|
||||
return Math.round(wrapper.layoutWidth);
|
||||
return wrapper.layoutWidth;
|
||||
else
|
||||
return Math.round(parent.zoomScaleWidth * wrapper.layoutWidth);
|
||||
return parent.zoomScaleWidth * wrapper.layoutWidth;
|
||||
}
|
||||
|
||||
height:{
|
||||
@ -653,9 +653,9 @@ Item {
|
||||
}
|
||||
|
||||
if (container.isInternalViewSplitter)
|
||||
return Math.round(wrapper.layoutHeight);
|
||||
return wrapper.layoutHeight;
|
||||
else
|
||||
return Math.round(parent.zoomScaleHeight * wrapper.layoutHeight);
|
||||
return parent.zoomScaleHeight * wrapper.layoutHeight;
|
||||
}
|
||||
|
||||
//width: Math.round( container.isInternalViewSplitter ? wrapper.layoutWidth : parent.zoomScaleWidth * wrapper.layoutWidth )
|
||||
@ -893,8 +893,8 @@ Item {
|
||||
var bigNeighbourZoom = Math.min(1 + zoomCenter + firstComputation, root.zoomFactor);
|
||||
var smallNeighbourZoom = Math.max(1 + zoomCenter - firstComputation, 1);
|
||||
|
||||
bigNeighbourZoom = Number(bigNeighbourZoom.toFixed(4));
|
||||
smallNeighbourZoom = Number(smallNeighbourZoom.toFixed(4));
|
||||
//bigNeighbourZoom = Number(bigNeighbourZoom.toFixed(4));
|
||||
//smallNeighbourZoom = Number(smallNeighbourZoom.toFixed(4));
|
||||
|
||||
var leftScale;
|
||||
var rightScale;
|
||||
|
@ -60,10 +60,6 @@ MouseArea{
|
||||
wrapper.height;
|
||||
}
|
||||
|
||||
onWidthChanged: {
|
||||
console.log("tt :: "+index+ " - "+wrapper.mScale+" - "+width);
|
||||
}
|
||||
|
||||
acceptedButtons: Qt.LeftButton | Qt.MidButton | Qt.RightButton
|
||||
hoverEnabled: visible && (inAnimation !== true) && (!IsStartup) && (!root.taskInAnimation)
|
||||
&& (!root.editMode || root.debugLocation)&&(!inBouncingAnimation)
|
||||
@ -305,15 +301,15 @@ MouseArea{
|
||||
|
||||
if (mainItemContainer.isSeparator){
|
||||
if (!root.vertical)
|
||||
return Math.round(5 + root.widthMargins);
|
||||
return 5 + root.widthMargins;
|
||||
else
|
||||
return Math.round((root.iconSize + root.widthMargins) * mScale + root.statesLineSize);
|
||||
return (root.iconSize + root.widthMargins) * mScale + root.statesLineSize;
|
||||
}
|
||||
|
||||
if (mainItemContainer.isStartup && root.durationTime !==0 )
|
||||
return Math.round(cleanScalingWidth);
|
||||
return cleanScalingWidth;
|
||||
else
|
||||
return Math.round(showDelegateWidth);
|
||||
return showDelegateWidth;
|
||||
}
|
||||
|
||||
height: {
|
||||
@ -322,15 +318,15 @@ MouseArea{
|
||||
|
||||
if (mainItemContainer.isSeparator){
|
||||
if (root.vertical)
|
||||
return Math.round(5 + root.heightMargins);
|
||||
return 5 + root.heightMargins;
|
||||
else
|
||||
return Math.round((root.iconSize + root.heightMargins) * mScale + root.statesLineSize);
|
||||
return (root.iconSize + root.heightMargins) * mScale + root.statesLineSize;
|
||||
}
|
||||
|
||||
if (mainItemContainer.isStartup && root.durationTime !==0)
|
||||
return Math.round(cleanScalingHeight);
|
||||
return cleanScalingHeight;
|
||||
else
|
||||
return Math.round(showDelegateheight);
|
||||
return showDelegateheight;
|
||||
}
|
||||
|
||||
//size needed fom the states below icons
|
||||
@ -404,7 +400,7 @@ MouseArea{
|
||||
|
||||
Behavior on mScale {
|
||||
enabled: root.globalDirectRender
|
||||
NumberAnimation { duration: 0 }
|
||||
NumberAnimation { duration: root.directRenderAnimationTime }
|
||||
}
|
||||
|
||||
Flow{
|
||||
@ -504,8 +500,8 @@ MouseArea{
|
||||
var bigNeighbourZoom = Math.min(1 + zoomCenter + firstComputation, root.zoomFactor);
|
||||
var smallNeighbourZoom = Math.max(1 + zoomCenter - firstComputation, minimumZoom);
|
||||
|
||||
bigNeighbourZoom = Number(bigNeighbourZoom.toFixed(4));
|
||||
smallNeighbourZoom = Number(smallNeighbourZoom.toFixed(4));
|
||||
//bigNeighbourZoom = Number(bigNeighbourZoom.toFixed(4));
|
||||
//smallNeighbourZoom = Number(smallNeighbourZoom.toFixed(4));
|
||||
|
||||
var leftScale;
|
||||
var rightScale;
|
||||
|
Loading…
x
Reference in New Issue
Block a user