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:
parent
c258deb07d
commit
c108cd4953
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user