From 8fc8ea57f6516be67fd5be33c98bc5ba0891ad32 Mon Sep 17 00:00:00 2001 From: kugiigi Date: Fri, 16 Apr 2021 23:15:01 +0800 Subject: [PATCH] Hide hint when closing and not empty --- qml/Stage/SideStage.qml | 3 ++- qml/Stage/Stage.qml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/Stage/SideStage.qml b/qml/Stage/SideStage.qml index c2096feeee..45471816cb 100644 --- a/qml/Stage/SideStage.qml +++ b/qml/Stage/SideStage.qml @@ -54,6 +54,7 @@ Showable { Rectangle { anchors.fill: parent color: Qt.rgba(0,0,0,0.95) + visible: showHint || hideAnimation.running } Column { @@ -62,7 +63,7 @@ Showable { x: panelWidth/2 - width/2 spacing: units.gu(3) opacity: 0.8 - visible: showHint + visible: showHint && !hideAnimation.running Icon { width: units.gu(30) diff --git a/qml/Stage/Stage.qml b/qml/Stage/Stage.qml index 7ddc9966d4..5f3f76c0b1 100644 --- a/qml/Stage/Stage.qml +++ b/qml/Stage/Stage.qml @@ -700,6 +700,7 @@ FocusScope { shown: false height: appContainer.height x: appContainer.width - width + showHint: !priv.sideStageDelegate visible: false Behavior on opacity { UbuntuNumberAnimation {} } z: {