1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-21 10:50:30 +03:00

new calculations for drawing shadows external

--fix an issue of leaving  some pixels transparent
between the external shadow and the panel background
when using the external shadows feature
This commit is contained in:
Michail Vourlakos 2017-05-01 19:03:40 +03:00
parent cddfd402f7
commit ab0576b687

View File

@ -158,9 +158,7 @@ Item{
property int panelSize: automaticPanelSize
property int automaticPanelSize: {
if (root.drawShadowsExternal) {
var iconS = 1.2*root.maxIconSize + 1;
root.realPanelThickness = iconS;
return iconS;
return root.isVertical ? root.width : root.height;
} else {
var icons = root.statesLineSize + root.iconSize + root.thickMargin + 1;
var panels = root.themePanelSize + root.panelMargin;