@ -44,6 +44,7 @@ Item {
property bool canBeHovered: true
property bool canShowAppletNumberBadge: ! isSeparator && ! isHidden && ! isLattePlasmoid
&& ! isSpacer && ! isInternalViewSplitter
property bool disableLatteParabolicIconHeuristics: applet && applet . disableLatteParabolicIcon !== undefined ? applet.disableLatteParabolicIcon : false
property bool inFillCalculations: false / / t e m p r e c o r d , i s u s e d i n c a l c u l a t i o n s f o r f i l l W i d t h , f i l l H e i g h t a p p l e t s
property bool needsFillSpace: { / / f i l l f l a g , i t i s u s e d i n c a l c u l a t i o n s f o r f i l l W i d t h , f i l l H e i g h t a p p l e t s
if ( ! applet || ! applet . Layout || ( applet && applet . pluginName === "org.kde.plasma.panelspacer" ) )
@ -80,8 +81,7 @@ Item {
( ( ( index === layoutsContainer . startLayout . beginIndex + layoutsContainer . startLayout . count - 2 ) && ( layoutsContainer . startLayout . count > 2 ) )
|| ( ( index === layoutsContainer . mainLayout . beginIndex + layoutsContainer . mainLayout . count - 2 ) && ( layoutsContainer . mainLayout . count > 2 ) )
|| ( ( index === layoutsContainer . endLayout . beginIndex + layoutsContainer . endLayout . count - 1 ) && ( layoutsContainer . endLayout . count > 1 ) ) )
property bool supportsIsInLatte: applet && applet . isInLatte !== undefined ? true : false
property int animationTime: root . durationTime * ( 1.2 * units . shortDuration ) / / 7 0
property int hoveredIndex: layoutsContainer . hoveredIndex
@ -164,6 +164,18 @@ Item {
}
}
onDisableLatteParabolicIconHeuristicsChanged: {
if ( disableLatteParabolicIconHeuristics && applet . opacity === 0 ) {
applet . opacity = 1 ;
wrapper . disableScaleWidth = false ;
wrapper . disableScaleHeight = false ;
wrapper . updateLayoutWidth ( ) ;
wrapper . updateLayoutHeight ( ) ;
}
}
/ / / B E G I N f u n c t i o n s
function activateAppletForNeutralAreas ( mouse ) {
/ / i f t h e e v e n t i s a t t h e a c t i v e i n d i c a t o r o r s p a c e r s a r e a t h e n t r y t o e x p a n d t h e a p p l e t ,
@ -355,6 +367,12 @@ Item {
}
}
onSupportsIsInLatteChanged: {
if ( supportsIsInLatte ) {
applet . isInLatte = true ;
}
}
Component.onCompleted: {
checkIndex ( ) ;
root . updateIndexes . connect ( checkIndex ) ;