1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

drop isHalfShown for myView.isShownPartially

--provide also myView.isShownFully
This commit is contained in:
Michail Vourlakos 2021-01-20 20:51:25 +02:00
parent 7a38642012
commit e9cc81b03a
7 changed files with 10 additions and 16 deletions

View File

@ -659,12 +659,6 @@ Item{
SequentialAnimation{
id: slidingAnimationAutoHiddenOut
ScriptAction{
script: {
root.isHalfShown = true;
}
}
PropertyAnimation {
target: !root.behaveAsPlasmaPanel ? layoutsContainer : latteView.positioner
property: !root.behaveAsPlasmaPanel ? (root.isVertical ? "x" : "y") : "slideOffset"
@ -741,7 +735,6 @@ Item{
ScriptAction{
script: {
root.isHalfShown = false;
root.inStartup = false;
}
}

View File

@ -30,6 +30,8 @@ AbilityHost.MyView {
inNormalState: ((animations.needBothAxis.count === 0) && (animations.needLength.count === 0))
|| (latteView && latteView.visibility.isHidden && !latteView.visibility.containsMouse && animations.needThickness.count === 0)
isHidden: isReady && latteView.visibility.isHidden
isShownPartially: isReady && (inSlidingIn || inSlidingOut)
isShownFully: isReady && !isHidden && !inSlidingIn && !inSlidingOut
inSlidingIn: visibilityManager.inSlidingIn
inSlidingOut: visibilityManager.inSlidingOut

View File

@ -65,8 +65,8 @@ Item {
return;
}
if (root.isHalfShown || (root.latteApplet
&& (root.latteApplet.noTasksInAnimation>0 || root.latteApplet.contextMenu))) {
if (!appletItem.myView.isShownFully || (root.latteApplet
&& (root.latteApplet.noTasksInAnimation>0 || root.latteApplet.contextMenu))) {
return;
}
@ -80,8 +80,8 @@ Item {
}
onParabolicMove: {
if (root.isHalfShown || (root.latteApplet
&& (root.latteApplet.noTasksInAnimation>0 || root.latteApplet.contextMenu))) {
if (!appletItem.myView.isShownFully || (root.latteApplet
&& (root.latteApplet.noTasksInAnimation>0 || root.latteApplet.contextMenu))) {
return;
}

View File

@ -217,7 +217,6 @@ Item {
property bool inSlidingIn: visibilityManager ? visibilityManager.inSlidingIn : false
property bool inSlidingOut: visibilityManager ? visibilityManager.inSlidingOut : false
property bool inStartup: true
property bool isHalfShown: false //is used to disable the zoom hovering effect at sliding in-out the dock
property bool isHorizontal: plasmoid.formFactor === PlasmaCore.Types.Horizontal
property bool isReady: !(dockIsHidden || inSlidingIn || inSlidingOut)
property bool isVertical: !isHorizontal

View File

@ -86,7 +86,7 @@ Item {
if (mousePos<0 || (inBlockingAnimation && !(inAttentionAnimation||inFastRestoreAnimation||inMimicParabolicAnimation)))
return;
if (root.latteView && root.latteView.isHalfShown) {
if (taskItem.abilities.myView.isReady && !taskItem.abilities.myView.isShownFully) {
return;
}

View File

@ -761,8 +761,8 @@ Item {
}
if(windowsPreviewDlg.activeItem !== taskItem){
if (!root.latteView
|| (root.latteView && !root.latteView.isHalfShown && !root.latteView.inSlidingIn && !root.latteView.inSlidingOut)) {
if (!taskItem.abilities.myView.isReady
|| (taskItem.abilities.myView.isReady && taskItem.abilities.myView.isShownFully)) {
if (root.latteView && root.titleTooltips) {
root.latteView.hideTooltipLabel();
}

View File

@ -88,7 +88,7 @@ MouseArea {
if ((inBlockingAnimation && !(inAttentionAnimation||inFastRestoreAnimation||inMimicParabolicAnimation)))
return;
if (root.latteView && root.latteView.isHalfShown) {
if (taskItem.abilities.myView.isReady && !taskItem.abilities.myView.isShownFully) {
return;
}