@ -174,6 +174,19 @@ Item {
&& plasmoid . configuration . backgroundOnlyOnMaximized
&& plasmoid . configuration . backgroundOnlyOnMaximized
&& plasmaBackgroundForPopups ) * /
&& plasmaBackgroundForPopups ) * /
property bool hideThickScreenGap: screenEdgeMarginEnabled
&& plasmoid . configuration . hideScreenGapForMaximized
&& latteView && latteView . windowsTracker
&& latteView . windowsTracker . currentScreen . existsWindowMaximized
property bool hideLengthScreenGaps: hideThickScreenGap
&& ( latteView . visibility . mode === Latte . Types . AlwaysVisible
|| latteView . visibility . mode === Latte . Types . WindowsGoBelow )
&& ( plasmoid . configuration . panelPosition === Latte . Types . Justify )
&& maxLengthPerCentage > 85
&& ! root . editMode
property int themeColors: plasmoid . configuration . themeColors
property int themeColors: plasmoid . configuration . themeColors
property int windowColors: plasmoid . configuration . windowColors
property int windowColors: plasmoid . configuration . windowColors
@ -199,7 +212,7 @@ Item {
property bool dockIsShownCompletely: ! ( dockIsHidden || inSlidingIn || inSlidingOut ) && ! root . editMode
property bool dockIsShownCompletely: ! ( dockIsHidden || inSlidingIn || inSlidingOut ) && ! root . editMode
property bool dragActiveWindowEnabled: plasmoid . configuration . dragActiveWindowEnabled
property bool dragActiveWindowEnabled: plasmoid . configuration . dragActiveWindowEnabled
property bool immutable: plasmoid . immutable
property bool immutable: plasmoid . immutable
property bool inFullJustify: ( plasmoid . configuration . panelPosition === Latte . Types . Justify ) && ( plasmoid. configuration . maxLength=== 100 )
property bool inFullJustify: ( plasmoid . configuration . panelPosition === Latte . Types . Justify ) && ( maxLengthPerCentage === 100 )
property bool inSlidingIn: visibilityManager ? visibilityManager.inSlidingIn : false
property bool inSlidingIn: visibilityManager ? visibilityManager.inSlidingIn : false
property bool inSlidingOut: visibilityManager ? visibilityManager.inSlidingOut : false
property bool inSlidingOut: visibilityManager ? visibilityManager.inSlidingOut : false
property bool inStartup: true
property bool inStartup: true
@ -254,11 +267,13 @@ Item {
}
}
property int latteAppletPos: - 1
property int latteAppletPos: - 1
property int maxLengthPerCentage: hideLengthScreenGaps ? 100 : plasmoid . configuration . maxLength
property int maxLength: {
property int maxLength: {
if ( root . isHorizontal ) {
if ( root . isHorizontal ) {
return behaveAsPlasmaPanel ? width : width * ( plasmoid. configuration . maxLength/ 100 )
return behaveAsPlasmaPanel ? width : width * ( maxLengthPerCentage / 100 )
} else {
} else {
return behaveAsPlasmaPanel ? height : height * ( plasmoid. configuration . maxLength/ 100 )
return behaveAsPlasmaPanel ? height : height * ( maxLengthPerCentage / 100 )
}
}
}
}
@ -393,8 +408,10 @@ Item {
property int thickMargin: thickMarginFactor * root . iconSize
property int thickMargin: thickMarginFactor * root . iconSize
property bool screenEdgeMarginEnabled: plasmoid . configuration . screenEdgeMargin >= 0 && ! plasmoid . configuration . shrinkThickMargins
property bool screenEdgeMarginEnabled: plasmoid . configuration . screenEdgeMargin >= 0 && ! plasmoid . configuration . shrinkThickMargins
property int screenEdgeMargin: ! screenEdgeMarginEnabled ? 0 : plasmoid . configuration . screenEdgeMargin
property int screenEdgeMargin: ! screenEdgeMarginEnabled || hideThickScreenGap ? 0 : plasmoid . configuration . screenEdgeMargin
property int localScreenEdgeMargin: ( screenEdgeMarginEnabled && behaveAsPlasmaPanel ) || ! screenEdgeMarginEnabled ? 0 : plasmoid . configuration . screenEdgeMargin
property int localScreenEdgeMargin: ( screenEdgeMarginEnabled && behaveAsPlasmaPanel )
|| ! screenEdgeMarginEnabled
|| hideThickScreenGap ? 0 : plasmoid . configuration . screenEdgeMargin
/ / ! t h i c k n e s s m a r g i n s a r e a l w a y s t w o a n d e q u a l i n o r d e r f o r i t e m s
/ / ! t h i c k n e s s m a r g i n s a r e a l w a y s t w o a n d e q u a l i n o r d e r f o r i t e m s
/ / ! t o b e a l w a y s c o r r e c t l y c e n t e r e d
/ / ! t o b e a l w a y s c o r r e c t l y c e n t e r e d