preserve indicator positioning for bouncing tasks

work/spdx
Michail Vourlakos 4 years ago
parent a153ed71f7
commit a58dfde26c

@ -98,6 +98,7 @@ Item{
property bool isSeparatorInRealLength: false
property bool isSeparatorHidden: false
readonly property bool isSeparatorVisible: isSeparator && !isSeparatorHidden && !tailItemIsSeparator
property bool preserveIndicatorInInitialPosition: false
property bool containsMouse: false

@ -39,8 +39,12 @@ AbilityItem.IndicatorLevel {
level.isDrawn: level.indicator && level.indicator.host && level.indicator.host.isEnabled && !abilityItem.isSeparator && !abilityItem.isHidden
readonly property real length: abilityItem.parabolicItem.length - 2*abilityItem.parabolicItem.zoom*abilityItem.abilities.metrics.margin.length
readonly property real thickness: abilityItem.parabolicItem.thickness
readonly property real length: abilityItem.preserveIndicatorInInitialPosition ?
abilityItem.abilities.metrics.iconSize + abilityItem.abilities.metrics.totals.lengthPaddings :
abilityItem.parabolicItem.length - 2*abilityItem.parabolicItem.zoom*abilityItem.abilities.metrics.margin.length
readonly property real thickness: abilityItem.preserveIndicatorInInitialPosition ?
abilityItem.abilities.metrics.thickness :
abilityItem.parabolicItem.thickness
Connections {
target: abilityItem

@ -63,6 +63,8 @@ AbilityItem.BasicItem {
return isWindow ? model.display : model.AppName;
}
preserveIndicatorInInitialPosition: inBouncingAnimation || inAttentionAnimation || inNewWindowAnimation
parabolicItem.isParabolicEventBlocked: root.dragSource
|| !hoverEnabled
|| !taskItem.abilities.myView.isShownFully

Loading…
Cancel
Save