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

improve shadow positioning in glow

This commit is contained in:
Michail Vourlakos 2017-11-18 18:16:50 +02:00
parent c258deb07d
commit c108cd4953
2 changed files with 8 additions and 8 deletions

View File

@ -269,17 +269,17 @@ Item{
if (plasmoid.formFactor === PlasmaCore.Types.Horizontal)
return 0;
else if (plasmoid.location === PlasmaCore.Types.LeftEdge)
return -glowItem.width / 5;
return -glowItem.width / 7;
else if (plasmoid.location === PlasmaCore.Types.RightEdge)
return glowItem.width / 5;
return glowItem.width / 7;
}
anchors.verticalCenterOffset: {
if (plasmoid.formFactor === PlasmaCore.Types.Vertical)
return 0;
else if (plasmoid.location === PlasmaCore.Types.BottomEdge)
return glowItem.height / 5;
return glowItem.height / 7;
else if (plasmoid.location === PlasmaCore.Types.TopEdge)
return -glowItem.height / 5;
return -glowItem.height / 7;
}
width: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? Math.max(mainGlowPart.width, shadow) : shadow

View File

@ -269,17 +269,17 @@ Item{
if (plasmoid.formFactor === PlasmaCore.Types.Horizontal)
return 0;
else if (plasmoid.location === PlasmaCore.Types.LeftEdge)
return -glowItem.width / 5;
return -glowItem.width / 7;
else if (plasmoid.location === PlasmaCore.Types.RightEdge)
return glowItem.width / 5;
return glowItem.width / 7;
}
anchors.verticalCenterOffset: {
if (plasmoid.formFactor === PlasmaCore.Types.Vertical)
return 0;
else if (plasmoid.location === PlasmaCore.Types.BottomEdge)
return glowItem.height / 5;
return glowItem.height / 7;
else if (plasmoid.location === PlasmaCore.Types.TopEdge)
return -glowItem.height / 5;
return -glowItem.height / 7;
}
width: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? Math.max(mainGlowPart.width, shadow) : shadow