mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-10-31 16:17:29 +08:00
33 lines
815 B
QML
33 lines
815 B
QML
import QtQuick 2.15
|
|
import QtQuick.Window 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
import QtGraphicalEffects 1.15
|
|
import FluentUI 1.0
|
|
|
|
Window {
|
|
id:app
|
|
color: "#00000000"
|
|
Component.onCompleted: {
|
|
|
|
FluApp.setContextProperty("installHelper",installHelper)
|
|
|
|
FluApp.isDark = false
|
|
FluApp.setAppWindow(app)
|
|
FluApp.routes = {
|
|
"/":"qrc:/MainPage.qml",
|
|
"/Setting":"qrc:/SettingPage.qml",
|
|
"/About":"qrc:/AboutPage.qml",
|
|
"/Installer":"qrc:/Installer.qml",
|
|
"/Uninstall":"qrc:/Uninstall.qml"
|
|
}
|
|
if(installHelper.isNavigateUninstall()){
|
|
FluApp.initialRoute = "/Uninstall"
|
|
}else{
|
|
FluApp.initialRoute = "/Installer"
|
|
}
|
|
FluApp.run()
|
|
}
|
|
|
|
}
|