on xenial help sign in
Shell & Stage: Use margin to place the 'No running apps' hint beside the launcher
8bc07afAlfred Neumayer
qml/Shell.qml+1
@@ -311,6 +311,7 @@ StyledItem {
311 inputMethodRect: inputMethod.visibleRect
311 inputMethodRect: inputMethod.visibleRect
312 rightEdgePushProgress: rightEdgeBarrier.progress
312 rightEdgePushProgress: rightEdgeBarrier.progress
313 availableDesktopArea: availableDesktopAreaItem
313 availableDesktopArea: availableDesktopAreaItem
314+ launcherLeftMargin: launcher.visibleWidth
314
315
315 property string usageScenario: shell.usageScenario === "phone" || greeter.hasLockedApp
316 property string usageScenario: shell.usageScenario === "phone" || greeter.hasLockedApp
316 ? "phone"
317 ? "phone"
qml/Stage/Stage.qml+4−1
@@ -94,6 +94,8 @@ FocusScope {
94 Qt.InvertedLandscapeOrientation;
94 Qt.InvertedLandscapeOrientation;
95 }
95 }
96
96
97+ property int launcherLeftMargin : 0
98+
97 Binding {
99 Binding {
98 target: topLevelSurfaceList
100 target: topLevelSurfaceList
99 property: "rootFocus"
101 property: "rootFocus"
@@ -660,9 +662,10 @@ FocusScope {
660 visible: false
662 visible: false
661 anchors.horizontalCenter: parent.horizontalCenter
663 anchors.horizontalCenter: parent.horizontalCenter
662 anchors.verticalCenter: parent.verticalCenter
664 anchors.verticalCenter: parent.verticalCenter
665+ anchors.fill: parent
663 horizontalAlignment: Qt.AlignHCenter
666 horizontalAlignment: Qt.AlignHCenter
664 verticalAlignment: Qt.AlignVCenter
667 verticalAlignment: Qt.AlignVCenter
665− width: parent.width
668+ anchors.leftMargin: root.launcherLeftMargin
666 wrapMode: Label.WordWrap
669 wrapMode: Label.WordWrap
667 fontSize: "large"
670 fontSize: "large"
668 text: i18n.tr("No running apps")
671 text: i18n.tr("No running apps")