mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
e76ed0fd71
- Implement Gallery in QML - Read gallery from `sqlitedb` - Implement `ThumbnailProvider` to handle thumbnail requests and caching - Move `FluentUI` related QML code to `windows` folder
51 lines
1.6 KiB
QML
51 lines
1.6 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Window 2.15
|
|
// import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
import FluentUI 1.0
|
|
|
|
FluLauncher {
|
|
id: app
|
|
// Connections{
|
|
// target: FluTheme
|
|
// function onDarkModeChanged(){
|
|
// SettingsHelper.saveDarkMode(FluTheme.darkMode)
|
|
// }
|
|
// }
|
|
// Connections{
|
|
// target: FluApp
|
|
// function onUseSystemAppBarChanged(){
|
|
// SettingsHelper.saveUseSystemAppBar(FluApp.useSystemAppBar)
|
|
// }
|
|
// }
|
|
// Connections{
|
|
// target: TranslateHelper
|
|
// function onCurrentChanged(){
|
|
// SettingsHelper.saveLanguage(TranslateHelper.current)
|
|
// }
|
|
// }
|
|
Component.onCompleted: {
|
|
// Network.openLog = false
|
|
// Network.setInterceptor(function(param){
|
|
// param.addHeader("Token","000000000000000000000")
|
|
// })
|
|
FluApp.init(app,Qt.locale())
|
|
// FluApp.windowIcon = "qrc:/example/res/image/favicon.ico"
|
|
// FluApp.useSystemAppBar = SettingsHelper.getUseSystemAppBar()
|
|
FluApp.useSystemAppBar = false
|
|
// FluTheme.darkMode = SettingsHelper.getDarkMode()
|
|
FluTheme.darkMode = false
|
|
FluTheme.animationEnabled = true
|
|
FluRouter.routes = {
|
|
"/":"qrc:/src/qml/windows/Index.qml",
|
|
}
|
|
var args = Qt.application.arguments
|
|
if(args.length>=2 && args[1].startsWith("-crashed=")){
|
|
FluRouter.navigate("/crash",{crashFilePath:args[1].replace("-crashed=","")})
|
|
}else{
|
|
FluRouter.navigate("/")
|
|
}
|
|
}
|
|
|
|
}
|