63 lines
1.4 KiB
QML
63 lines
1.4 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
|
|
import Status.Application
|
|
|
|
import Status.Containers
|
|
import Status.Controls
|
|
|
|
import Status.Application.Navigation
|
|
|
|
/// Responsible for setup of user workflows after onboarding
|
|
Item {
|
|
id: root
|
|
|
|
required property ApplicationController appController
|
|
|
|
/// Emitted when everything is loaded and UX ready
|
|
signal ready()
|
|
|
|
Component.onCompleted: root.ready()
|
|
|
|
implicitWidth: mainLayout.implicitWidth
|
|
implicitHeight: mainLayout.implicitHeight
|
|
|
|
RowLayout {
|
|
id: mainLayout
|
|
|
|
anchors.fill: parent
|
|
|
|
StatusNavigationBar {
|
|
id: navBar
|
|
|
|
Layout.fillHeight: true
|
|
|
|
sections: appSections.sectionsList
|
|
}
|
|
|
|
ColumnLayout {
|
|
// Not visible all the time
|
|
StatusBanner {
|
|
Layout.fillWidth: true
|
|
|
|
//statusText: // TODO: appController.bannerController.text
|
|
//type: // TODO: appController.bannerController.type
|
|
visible: false // TODO: appController.bannerController.visible
|
|
}
|
|
Loader {
|
|
id: mainLoader
|
|
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
}
|
|
}
|
|
}
|
|
|
|
StatusApplicationSections {
|
|
id: appSections
|
|
// Chat ...
|
|
// Wallet ...
|
|
}
|
|
}
|