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

improve calculations of panelEdgeSpacing

This commit is contained in:
Michail Vourlakos 2018-04-03 17:06:54 +03:00
parent 8f33a4f722
commit 820dff0bb5
2 changed files with 8 additions and 2 deletions

View File

@ -40,6 +40,10 @@ Item{
property int animationTime: 6*root.durationTime*units.shortDuration
property int lengthMargins: {
return root.isVertical ? shadowsSvgItem.marginsHeight : shadowsSvgItem.marginsWidth
}
property int panelWidth: {
if (root.behaveAsPlasmaPanel && !root.editMode) {
return root.width;

View File

@ -167,7 +167,7 @@ DragDrop.DropArea {
property int modifierClickAction: plasmoid.configuration.modifierClickAction
property int modifierClick: plasmoid.configuration.modifierClick
property int panelEdgeSpacing: Math.max(iconSize / 3, 1.5*appShadowSize)
property int panelEdgeSpacing: Math.max(panelBoxBackground.lengthMargins, 1.5*appShadowSize)
property int panelTransparency: plasmoid.configuration.panelTransparency
property bool panelShadowsActive: (( (plasmoid.configuration.panelShadows && !root.backgroundOnlyOnMaximized)
|| (plasmoid.configuration.panelShadows && root.backgroundOnlyOnMaximized && !root.forceTransparentPanel))
@ -1611,7 +1611,9 @@ DragDrop.DropArea {
anchors.fill:layoutsContainer
// z: root.behaveAsPlasmaPanel ? 0 : 1
PanelBox{}
PanelBox{
id: panelBoxBackground
}
}
Item {