on xenial help sign in
Stage: 'No running apps' hint on top of Spread
1ee6c52Alfred Neumayer
qml/Stage/Stage.qml+15
@@ -481,6 +481,7 @@ FocusScope {
481 PropertyChanges { target: hoverMouseArea; enabled: true }
481 PropertyChanges { target: hoverMouseArea; enabled: true }
482 PropertyChanges { target: rightEdgeDragArea; enabled: false }
482 PropertyChanges { target: rightEdgeDragArea; enabled: false }
483 PropertyChanges { target: cancelSpreadMouseArea; enabled: true }
483 PropertyChanges { target: cancelSpreadMouseArea; enabled: true }
484+ PropertyChanges { target: noAppsRunningHint; visible: (root.topLevelSurfaceList.count < 1) }
484 PropertyChanges { target: blurLayer; visible: true; blurRadius: 32; brightness: .65; opacity: 1 }
485 PropertyChanges { target: blurLayer; visible: true; blurRadius: 32; brightness: .65; opacity: 1 }
485 PropertyChanges { target: wallpaper; visible: false }
486 PropertyChanges { target: wallpaper; visible: false }
486 },
487 },
@@ -493,6 +494,7 @@ FocusScope {
493 brightness: .65
494 brightness: .65
494 opacity: 1
495 opacity: 1
495 }
496 }
497+ PropertyChanges { target: noAppsRunningHint; visible: (root.topLevelSurfaceList.count < 1) }
496 },
498 },
497 State {
499 State {
498 name: "sideStagedRightEdge"; when: root.spreadEnabled && (rightEdgeDragArea.dragging || rightEdgePushProgress > 0) && root.mode == "stagedWithSideStage"
500 name: "sideStagedRightEdge"; when: root.spreadEnabled && (rightEdgeDragArea.dragging || rightEdgePushProgress > 0) && root.mode == "stagedWithSideStage"
@@ -616,6 +618,19 @@ FocusScope {
616 }
618 }
617 }
619 }
618
620
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+
619 Connections {
634 Connections {
620 target: root.topLevelSurfaceList
635 target: root.topLevelSurfaceList
621 onListChanged: priv.updateMainAndSideStageIndexes()
636 onListChanged: priv.updateMainAndSideStageIndexes()