Qt World Summit Conference App
import QtQuick 2.0
import Felgo 3.0
import "pages"
import "common"
App {
id: app
licenseKey: AppSettings.licenseKey
property color secondaryTintColor: "#09102b"
property string ratingUrl: system.isPlatform(System.IOS) ? "itms-apps://itunes.apple.com/at/app/id1484310915?mt=8" :
system.isPlatform(System.Android) ? "https://play.google.com/store/apps/details?id=net.vplay.demos.qtws2019" :
"https://felgo.com/qws-conference-in-app-2019"
onInitTheme: {
Theme.colors.tintColor = "#41cd52"
Theme.navigationBar.backgroundColor = Qt.binding(function() { return Theme.isAndroid || Theme.isDesktop ? app.secondaryTintColor : "#f8f8f8" })
Theme.tabBar.backgroundColor = Qt.binding(function() { return Theme.isAndroid || Theme.isDesktop ? app.secondaryTintColor : "#f8f8f8" })
Theme.tabBar.markerColor = Qt.binding(function() { return Theme.tintColor })
Theme.tabBar.titleColor = Qt.binding(function() { return Theme.tintColor })
Theme.tabBar.titleOffColor = Qt.binding(function() { return Theme.secondaryTextColor })
Theme.colors.statusBarStyle = Qt.binding(function() { return Theme.isAndroid || Theme.isDesktop ? Theme.colors.statusBarStyleWhite : Theme.colors.statusBarStyleBlack })
Theme.dialog.buttonTextSize = 18
}
onBackButtonPressedGlobally: {
if(loaderItem.navigation && loaderItem.navigation.currentIndex !== 0)
return
if(loaderItem.navigation && loaderItem.navigation.currentNavigationItem.navigationStack.depth !== 1)
return
if(loaderItem.navigation.drawer.isOpen)
return
if(!app.visible)
return
NativeDialog.confirm(qsTr("Really quit this app?"), "", function(ok) {
if(ok)
app.close()
}, true)
event.accepted = true
}
NotificationManager {
id: notificationManager
}