2023-03-30 21:52:55 +08:00
|
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import FluentUI
|
2023-02-26 23:47:07 +08:00
|
|
|
|
|
|
|
|
|
Window {
|
|
|
|
|
id:app
|
|
|
|
|
Component.onCompleted: {
|
2023-04-11 23:12:31 +08:00
|
|
|
|
FluApp.init(app)
|
2023-03-28 21:37:10 +08:00
|
|
|
|
FluTheme.frameless = ("windows" === Qt.platform.os)
|
2023-04-19 23:53:00 +08:00
|
|
|
|
FluTheme.darkMode = FluDarkMode.System
|
2023-02-26 23:47:07 +08:00
|
|
|
|
FluApp.routes = {
|
2023-03-13 18:23:46 +08:00
|
|
|
|
"/":"qrc:/page/MainPage.qml",
|
|
|
|
|
"/about":"qrc:/page/AboutPage.qml",
|
|
|
|
|
"/login":"qrc:/page/LoginPage.qml",
|
2023-03-17 14:05:27 +08:00
|
|
|
|
"/chat":"qrc:/page/ChatPage.qml",
|
2023-03-31 17:59:20 +08:00
|
|
|
|
"/media":"qrc:/page/MediaPage.qml",
|
2023-04-13 18:10:38 +08:00
|
|
|
|
"/singleTaskWindow":"qrc:/page/SingleTaskWindow.qml",
|
|
|
|
|
"/standardWindow":"qrc:/page/StandardWindow.qml",
|
|
|
|
|
"/singleInstanceWindow":"qrc:/page/SingleInstanceWindow.qml"
|
2023-03-03 18:19:48 +08:00
|
|
|
|
}
|
2023-03-05 23:46:46 +08:00
|
|
|
|
FluApp.initialRoute = "/"
|
2023-02-26 23:47:07 +08:00
|
|
|
|
FluApp.run()
|
|
|
|
|
}
|
|
|
|
|
}
|