do not draw indicatorPaddings for PlasmaAutoFill

work/spdx
Michail Vourlakos 4 years ago
parent 1e99b97def
commit 219c1b5e05

@ -188,6 +188,7 @@ Item {
|| (root.behaveAsDockWithMask && !parabolicEffectIsSupported) || (root.behaveAsDockWithMask && !parabolicEffectIsSupported)
|| (root.behaveAsDockWithMask && parabolicEffectIsSupported && lockZoom) || (root.behaveAsDockWithMask && parabolicEffectIsSupported && lockZoom)
readonly property bool isIndicatorDrawn: indicatorBackLayer.level.isDrawn
readonly property bool isSquare: parabolicEffectIsSupported readonly property bool isSquare: parabolicEffectIsSupported
readonly property bool screenEdgeMarginSupported: communicator.requires.screenEdgeMarginSupported || communicator.indexerIsSupported readonly property bool screenEdgeMarginSupported: communicator.requires.screenEdgeMarginSupported || communicator.indexerIsSupported
@ -280,8 +281,13 @@ Item {
//! local margins //! local margins
readonly property bool parabolicEffectMarginsEnabled: appletItem.parabolic.factor.zoom>1 && !originalAppletBehavior && !communicator.parabolicEffectIsSupported readonly property bool parabolicEffectMarginsEnabled: appletItem.parabolic.factor.zoom>1 && !originalAppletBehavior && !communicator.parabolicEffectIsSupported
property int lengthAppletPadding: metrics.fraction.lengthAppletPadding === -1 || parabolicEffectMarginsEnabled ? property int lengthAppletPadding:{
metrics.padding.length : metrics.padding.lengthApplet if (!isIndicatorDrawn) {
return 0;
}
return metrics.fraction.lengthAppletPadding === -1 || parabolicEffectMarginsEnabled ? metrics.padding.length : metrics.padding.lengthApplet;
}
property int lengthAppletFullMargin: 0 property int lengthAppletFullMargin: 0
property int lengthAppletFullMargins: 2 * lengthAppletFullMargin property int lengthAppletFullMargins: 2 * lengthAppletFullMargin

@ -59,6 +59,7 @@ AbilityItem.IndicatorLevel {
level.isDrawn: !appletItem.isSeparator level.isDrawn: !appletItem.isSeparator
&& !appletItem.isHidden && !appletItem.isHidden
&& !(appletItem.isAutoFillApplet && !communicator.indexerIsSupported) //! simple Plasma AutoFill applets
&& !communicator.indexerIsSupported && !communicator.indexerIsSupported
&& level.indicator.host.isEnabled && level.indicator.host.isEnabled
&& (appletItem.communicator.requires.activeIndicatorEnabled && (appletItem.communicator.requires.activeIndicatorEnabled

Loading…
Cancel
Save