@ -84,8 +84,8 @@ Item {
property bool isSpacer: applet && ( applet . pluginName === "org.kde.latte.spacer" )
property bool isSpacer: applet && ( applet . pluginName === "org.kde.latte.spacer" )
property bool isSystray: applet && ( applet . pluginName === "org.kde.plasma.systemtray" || applet . pluginName === "org.nomad.systemtray" )
property bool isSystray: applet && ( applet . pluginName === "org.kde.plasma.systemtray" || applet . pluginName === "org.nomad.systemtray" )
property bool firstChildOfStartLayout: ( index === layoutsContainer . startLayout . begin Index)
property bool firstChildOfStartLayout: index === layoutsContainer . startLayout . firstVisi bl eIndex
property bool lastChildOfEndLayout: ( ( index === layoutsContainer . endLayout . beginIndex+ layoutsContainer . endLayout . count - 1 ) && ( layoutsContainer . endLayout . count > 1 ) )
property bool lastChildOfEndLayout: index === layoutsContainer . endLayout . lastVisibleIndex
readonly property bool atScreenEdge: {
readonly property bool atScreenEdge: {
if ( root . isHorizontal ) {
if ( root . isHorizontal ) {
@ -106,14 +106,15 @@ Item {
}
}
/ / a p p l e t i s i n s t a r t i n g e d g e
/ / a p p l e t i s i n s t a r t i n g e d g e
/ * p r o p e r t y b o o l s t a r t E d g e : i n d e x < l a y o u t s C o n t a i n e r . e n d L a y o u t . b e g i n I n d e x ? ( i n d e x = = = 0 ) & & ( l a y o u t s C o n t a i n e r . m a i n L a y o u t . c o u n t > 1 ) :
property bool startEdge: ( index >= 0 ) &&
( index === layoutsContainer . endLayout . beginIndex ) && ( layoutsContainer . endLayout . count > 1 ) * /
( ( index === layoutsContainer . startLayout . firstVisibleIndex )
property bool startEdge: ( index === layoutsContainer . startLayout . beginIndex ) || ( index === layoutsContainer . mainLayout . beginIndex ) || ( index === layoutsContainer . endLayout . beginIndex )
|| ( index === layoutsContainer . mainLayout . firstVisibleIndex )
|| ( index === layoutsContainer . endLayout . firstVisibleIndex ) )
/ / a p p l e t i s i n e n d i n g e d g e
/ / a p p l e t i s i n e n d i n g e d g e
property bool endEdge: plasmoid . configuration . panelPosition !== Latte . Types . Justify ? ( index === layoutsContainer . mainLayout . beginIndex + layoutsContainer . mainLayout . count - 1 ) && ( layoutsContainer . mainLayout . count > 1 ) :
property bool endEdge: ( index >= 0 ) &&
( ( ( index === layoutsContainer . startLayout . beginIndex+ layoutsContainer . startLayout . count - 2 ) && ( layoutsContainer . startLayout . count > 2 ) )
( ( index === layoutsContainer . startLayout . lastVisibleIndex )
|| ( ( index === layoutsContainer . mainLayout . beginIndex + layoutsContainer . mainLayout . count - 2 ) && ( layoutsContainer . mainLayout . count > 2 ) )
|| ( index === layoutsContainer . mainLayout . lastVisibleIndex )
|| ( ( index === layoutsContainer . endLayout . beginIndex + layoutsContainer . endLayout . count - 1 ) && ( layoutsContainer . endLayout . count > 1 ) ) )
|| ( index === layoutsContainer . endLayout . lastVisibleIndex ) )
readonly property bool acceptMouseEvents: applet && ! isLattePlasmoid && ! originalAppletBehavior && ! appletItem . isSeparator && ! communicator . parabolicEffectLocked
readonly property bool acceptMouseEvents: applet && ! isLattePlasmoid && ! originalAppletBehavior && ! appletItem . isSeparator && ! communicator . parabolicEffectLocked
readonly property bool originalAppletBehavior: ( root . zoomFactor === 1 && ! lockZoom /*hacky flag to keep Latte behavior*/ )
readonly property bool originalAppletBehavior: ( root . zoomFactor === 1 && ! lockZoom /*hacky flag to keep Latte behavior*/ )
@ -466,8 +467,8 @@ Item {
Component.onDestruction: {
Component.onDestruction: {
if ( animationWasSent ) {
if ( animationWasSent ) {
root . slotAnimationsNeedBothAxis ( - 1 ) ;
root . slotAnimationsNeedBothAxis ( - 1 ) ;
animationWasSent = false ;
animationWasSent = false ;
}
}
if ( isSeparator ) {
if ( isSeparator ) {