rename background.isGreaterThanItemThickness

work/spdx
Michail Vourlakos 4 years ago
parent f6ddf52148
commit cc81a0ae46

@ -38,7 +38,6 @@ Item{
property bool inForceHiding: false //is used when the docks are forced in hiding e.g. when changing layouts
property bool normalState : false // this is being set from updateMaskArea
property bool previousNormalState : false // this is only for debugging purposes
property bool panelIsBiggerFromIconSize: root.useThemePanel && (background.totals.visualThickness >= (metrics.iconSize + metrics.margin.thickness))
property bool inClientSideFloating: !root.behaveAsPlasmaPanel
&& screenEdgeMarginEnabled

@ -178,6 +178,9 @@ BackgroundProperties{
property int animationTime: 6*animations.speedFactor.current*animations.duration.small
//! Metrics related
readonly property bool isGreaterThanItemThickness: root.useThemePanel && (totals.visualThickness >= (metrics.iconSize + metrics.margin.thickness))
//! CustomShadowedRectangle properties
readonly property bool customShadowedRectangleIsEnabled: customRadiusIsEnabled || (customDefShadowIsEnabled || customUserShadowIsEnabled)

@ -611,7 +611,7 @@ Window{
}
Text{
text: visibilityManager.panelIsBiggerFromIconSize
text: background.isGreaterThanItemThickness
}
Text{

@ -103,7 +103,7 @@ Item {
var staticLayout = (plasmoid.configuration.minLength === plasmoid.configuration.maxLength);
if ((plasmoid.configuration.alignment === LatteCore.Types.Justify || staticLayout)
&& visibilityManager.panelIsBiggerFromIconSize
&& background.isGreaterThanItemThickness
&& (parabolic.factor.maxZoom === 1.0)) {
return LatteCore.Types.PanelView;
}

Loading…
Cancel
Save