on xenial help sign in
make it run on desktop again
ad93795Michael Zanetti
qml/OrientedShell.qml+3−3
@@ -28,9 +28,9 @@ Rectangle {
28 id: orientedShell
28 id: orientedShell
29
29
30 // this is only here to select the width / height of the window if not running fullscreen
30 // this is only here to select the width / height of the window if not running fullscreen
31− //property bool tablet: false
31+ property bool tablet: false
32− //width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
32+ width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
33− //height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
33+ height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
34
34
35 // Hack to avoid animating during startup
35 // Hack to avoid animating during startup
36 property bool ready: false
36 property bool ready: false
qml/Shell.qml+5
@@ -64,6 +64,11 @@ FocusScope {
64 property url background
64 property url background
65 readonly property real panelHeight: panel.panelHeight
65 readonly property real panelHeight: panel.panelHeight
66
66
67+ // this is only here to select the width / height of the window if not running fullscreen
68+ property bool tablet: false
69+ width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
70+ height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
71+
67 property bool sideStageEnabled: shell.width >= units.gu(100)
72 property bool sideStageEnabled: shell.width >= units.gu(100)
68
73
69 function activateApplication(appId) {
74 function activateApplication(appId) {