1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-24 02:50:35 +03:00

reduce flickering of parabolic effect

--reduce flickering for parabolic effect when
tasks are combined with applets
This commit is contained in:
Michail Vourlakos 2017-05-03 22:40:20 +03:00
parent 987cfba048
commit 1cdd5fde9a

View File

@ -302,15 +302,15 @@ MouseArea{
if (mainItemContainer.isSeparator){
if (!root.vertical)
return 5 + root.widthMargins;
return Math.round(5 + root.widthMargins);
else
return (root.iconSize + root.widthMargins) * mScale + root.statesLineSize;
return Math.round((root.iconSize + root.widthMargins) * mScale + root.statesLineSize);
}
if (mainItemContainer.isStartup && root.durationTime !==0 )
return cleanScalingWidth;
return Math.round(cleanScalingWidth);
else
return showDelegateWidth;
return Math.round(showDelegateWidth);
}
height: {
@ -319,15 +319,15 @@ MouseArea{
if (mainItemContainer.isSeparator){
if (root.vertical)
return 5 + root.heightMargins;
return Math.round(5 + root.heightMargins);
else
return (root.iconSize + root.heightMargins) * mScale + root.statesLineSize;
return Math.round((root.iconSize + root.heightMargins) * mScale + root.statesLineSize);
}
if (mainItemContainer.isStartup && root.durationTime !==0)
return cleanScalingHeight;
return Math.round(cleanScalingHeight);
else
return showDelegateheight;
return Math.round(showDelegateheight);
}
//size needed fom the states below icons