| 1 |
import QtQuick 2.4 |
| 2 |
import Lomiri.Components 1.3 |
| 3 |
import Dekko.Mail.API 1.0 |
| 4 |
import Dekko.Mail.Stores.Accounts 1.0 |
| 5 |
import Dekko.Lomiri.Stage 1.0 |
| 6 |
import Dekko.Components 1.0 |
| 7 |
import PlugMan 1.0 |
| 8 |
import Dekko.Lomiri.Stage 1.0 |
| 9 |
import Dekko.Lomiri.Components 1.0 |
| 10 |
import "../" |
| 11 |
|
| 12 |
BaseStage { |
| 13 |
id: ms |
| 14 |
|
| 15 |
panelEnabled: devModeEnabled |
| 16 |
|
| 17 |
// We use a stretch row here rather than RowLayout |
| 18 |
// Just because we can use the implicit size hints to stretch the correct |
| 19 |
// panel. Yes we could use Layout.fillWidth but in the future there maybe |
| 20 |
// more columns added to this (through plugins) and we may want to share remaining width evenly between two |
| 21 |
// or more colums. Which StretchRow handles nicely |
| 22 |
StretchRow { |
| 23 |
spacing: 0 |
| 24 |
anchors.fill: parent |
| 25 |
|
| 26 |
NavPluginSideBar { |
| 27 |
height: parent.height |
| 28 |
width: units.gu(8) |
| 29 |
implicitWidth: width |
| 30 |
visible: !dekko.isSmallFF && !AccountSetup.wizardRunning |
| 31 |
} |
| 32 |
|
| 33 |
Stretcher { |
| 34 |
anchors { |
| 35 |
top: parent.top |
| 36 |
bottom: parent.bottom |
| 37 |
} |
| 38 |
|
| 39 |
StageStack { |
| 40 |
id: rootPageStack |
| 41 |
anchors.fill: parent |
| 42 |
|
| 43 |
Component.onCompleted: { |
| 44 |
ViewActions.stageStackReady() |
| 45 |
} |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
|