2020-05-11 21:24:08 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Qt.labs.platform 1.1
|
2020-05-13 02:51:26 +00:00
|
|
|
import "./onboarding"
|
|
|
|
import "./app"
|
2020-05-11 21:24:08 +00:00
|
|
|
|
|
|
|
ApplicationWindow {
|
|
|
|
id: applicationWindow
|
|
|
|
width: 1232
|
|
|
|
height: 770
|
|
|
|
title: "Nim Status Client"
|
|
|
|
visible: true
|
2020-05-12 22:51:00 +00:00
|
|
|
font.family: "Inter"
|
2020-05-18 15:07:30 +00:00
|
|
|
|
|
|
|
SystemTrayIcon {
|
|
|
|
visible: true
|
|
|
|
icon.source: "shared/img/status-logo.png"
|
|
|
|
menu: Menu {
|
|
|
|
MenuItem {
|
|
|
|
text: qsTr("Quit")
|
|
|
|
onTriggered: Qt.quit()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
onActivated: {
|
|
|
|
applicationWindow.show()
|
|
|
|
applicationWindow.raise()
|
|
|
|
applicationWindow.requestActivate()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: rctAppBg
|
|
|
|
color: "#FFFFFF"
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
anchors.fill: parent
|
|
|
|
border.width: 0
|
|
|
|
|
|
|
|
Intro {
|
|
|
|
id: onboarding
|
|
|
|
visible: !app.visible
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
|
|
|
|
AppMain {
|
|
|
|
id: app
|
|
|
|
// TODO: Set this to a logic result determining when we need to show the onboarding screens
|
|
|
|
// Set to true to hide the onboarding screens manually
|
|
|
|
// Set to false to show the onboarding screens manually
|
|
|
|
visible: false // logic.accountResult !== ""
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
2020-05-11 21:24:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-05-13 02:51:26 +00:00
|
|
|
|