mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-23 02:50:12 +03:00
fix warnings from PanelBox
This commit is contained in:
parent
7e6aacd158
commit
4e4ae54896
@ -201,21 +201,27 @@ Item{
|
||||
}
|
||||
}
|
||||
|
||||
property int shadowsSize: {
|
||||
if (shadowsSvgItem && !root.behaveAsPlasmaPanel && root.useThemePanel && root.panelShadowsActive){
|
||||
if (root.isVertical){
|
||||
if (plasmoid.location === PlasmaCore.Types.LeftEdge)
|
||||
return shadowsSvgItem.margins.right;
|
||||
else if (plasmoid.location === PlasmaCore.Types.RightEdge)
|
||||
return shadowsSvgItem.margins.left;
|
||||
property int shadowsSize: 0
|
||||
|
||||
Binding{
|
||||
target: shadowsSvgItem
|
||||
property: "shadowsSize"
|
||||
value:{
|
||||
if (shadowsSvgItem && !root.behaveAsPlasmaPanel && root.useThemePanel && root.panelShadowsActive){
|
||||
if (root.isVertical){
|
||||
if (plasmoid.location === PlasmaCore.Types.LeftEdge)
|
||||
return shadowsSvgItem.margins.right;
|
||||
else if (plasmoid.location === PlasmaCore.Types.RightEdge)
|
||||
return shadowsSvgItem.margins.left;
|
||||
} else {
|
||||
if (plasmoid.location === PlasmaCore.Types.BottomEdge)
|
||||
return shadowsSvgItem.margins.top;
|
||||
else if (plasmoid.location === PlasmaCore.Types.TopEdge)
|
||||
return shadowsSvgItem.margins.bottom;
|
||||
}
|
||||
} else {
|
||||
if (plasmoid.location === PlasmaCore.Types.BottomEdge)
|
||||
return shadowsSvgItem.margins.top;
|
||||
else if (plasmoid.location === PlasmaCore.Types.TopEdge)
|
||||
return shadowsSvgItem.margins.bottom;
|
||||
return 0;
|
||||
}
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user