on xenial help sign in
Stage: 'No running apps' hint on top of Spread
commit1ee6c52619db1eb0d13ec0bfadb1b49af7f319ca authorAlfred Neumayer <dev.beidl@gmail.com> dateFri 19 Apr 2019, 00:27 (7 years ago) parent9406499
1 file changed+15
qml/Stage/Stage.qml+15
qml/Stage/Stage.qml+15
@@ -481,6 +481,7 @@ FocusScope {
481481 PropertyChanges { target: hoverMouseArea; enabled: true }
482482 PropertyChanges { target: rightEdgeDragArea; enabled: false }
483483 PropertyChanges { target: cancelSpreadMouseArea; enabled: true }
484+ PropertyChanges { target: noAppsRunningHint; visible: (root.topLevelSurfaceList.count < 1) }
484485 PropertyChanges { target: blurLayer; visible: true; blurRadius: 32; brightness: .65; opacity: 1 }
485486 PropertyChanges { target: wallpaper; visible: false }
486487 },
@@ -493,6 +494,7 @@ FocusScope {
493494 brightness: .65
494495 opacity: 1
495496 }
497+ PropertyChanges { target: noAppsRunningHint; visible: (root.topLevelSurfaceList.count < 1) }
496498 },
497499 State {
498500 name: "sideStagedRightEdge"; when: root.spreadEnabled && (rightEdgeDragArea.dragging || rightEdgePushProgress > 0) && root.mode == "stagedWithSideStage"
@@ -616,6 +618,19 @@ FocusScope {
616618 }
617619 }
618620
621+ Label {
622+ id: noAppsRunningHint
623+ visible: false
624+ anchors.horizontalCenter: parent.horizontalCenter
625+ anchors.verticalCenter: parent.verticalCenter
626+ horizontalAlignment: Qt.AlignHCenter
627+ verticalAlignment: Qt.AlignVCenter
628+ width: parent.width
629+ wrapMode: Label.WordWrap
630+ fontSize: "large"
631+ text: i18n.tr("No running apps")
632+ }
633+
619634 Connections {
620635 target: root.topLevelSurfaceList
621636 onListChanged: priv.updateMainAndSideStageIndexes()