-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.qml
41 lines (35 loc) · 1.16 KB
/
app.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import QtQuick 2.11
import QtQuick.Controls 2.4
import QtQuick.Controls.Material 2.4
import Qb 1.0
import Qb.Core 1.0
import "ZeUi" as ZeUi
import "StudioQB/StudioQBCore" as StudioQBCore
ZeUi.ZSOneAppUi{
id: objMainAppUi
dockLogo: objMainAppUi.absoluteURL("/images/StudioQB.png")
changeWindowPosition: true
onLogoClicked: {
objMainAppUi.changePage(0);
}
QbSettings{
id: objSettings
name: "StudioQB"
property alias windowWidth: objMainAppUi.windowWidth
property alias windowHeight: objMainAppUi.windowHeight
property alias windowX: objMainAppUi.windowX
property alias windowY: objMainAppUi.windowY
}
Component.onCompleted: {
var theme = {};
theme["primary"] = "#004361";
theme["secondary"] = "#007290";
theme["background"] = "white";
theme["accent"] = "#A3D5EF";
theme["theme"] = "light";
theme["error"] = "#B00020";
theme["foreground"] = "black";
ZeUi.ZBTheme.metaTheme.setThemeFromJsonData(JSON.stringify(theme));
StudioQBCore.StudioQBOne.addPage("##ProjectsPage HOME##","/StudioQB/ProjectsPage.qml",{});
}
}