@ -54,6 +54,7 @@ PlasmaCore.FrameSvgItem {
return prefix ;
}
/ / u p d a t e w h e n S y s t e m T r a y i s e x p a n d e d - a p p l e t a c t i v a t e d o r h i d d e n i c o n s s h o w n
Connections {
target: systemTrayState
@ -66,6 +67,7 @@ PlasmaCore.FrameSvgItem {
}
}
/ / u p d a t e w h e n a p p l e t c h a n g e s p a r e n t ( e . g . m o v e s f r o m a c t i v e t o h i d d e n i c o n s )
Connections {
target: systemTrayState . activeApplet
@ -74,6 +76,7 @@ PlasmaCore.FrameSvgItem {
}
}
/ / u p d a t e w h e n S y s t e m T r a y s i z e c h a n g e s
Connections {
target: parent
@ -86,9 +89,18 @@ PlasmaCore.FrameSvgItem {
}
}
/ / u p d a t e w h e n s c a l e o f n e w l y a d d e d t r a y i t e m c h a n g e s ( c h e c k ' a d d ' a n i m a t i o n i n G r i d V i e w i n m a i n . q m l )
Connections {
target: ! ! highlightedItem && highlightedItem . parent ? highlightedItem.parent : null
function onScaleChanged ( ) {
updateHighlightedItem ( ) ;
}
}
function updateHighlightedItem ( ) {
if ( systemTrayState . expanded ) {
if ( systemTrayState . activeApplet && systemTrayState . activeApplet . parent . inVisibleLayout ) {
if ( systemTrayState . activeApplet && systemTrayState . activeApplet . parent && systemTrayState . activeApplet . parent . inVisibleLayout ) {
changeHighlightedItem ( systemTrayState . activeApplet . parent . container ) ;
} else { / / ' S h o w h i d e n i t e m s ' p o p u p
changeHighlightedItem ( parent ) ;
@ -100,8 +112,8 @@ PlasmaCore.FrameSvgItem {
function changeHighlightedItem ( nextItem ) {
/ / d o n o t a n i m a t e t h e f i r s t a p p e a r a n c e
/ / o r w h e n s i z e o f p a r e n t ( r o o t ) c h a n g e s
if ( ! highlightedItem || ( highlightedItem === nextItem && nextItem === parent ) ) {
/ / o r w h e n t h e p r o p e r t y v a l u e o f a h i g h l i g h t e d i t e m c h a n g e s
if ( ! highlightedItem || ( highlightedItem === nextItem ) ) {
animationEnabled = false ;
}