WIP: add Qt Quick HomeScreen UI
[staging/HomeScreen.git] / HomeScreenNG / qml / main.qml
1 import QtQuick 2.7
2 import QtQuick.Window 2.2
3 import QtQuick.Layouts 1.1
4
5 Window {
6     visible: true
7     flags: Qt.FramelessWindowHint
8     width: container.width * container.scale
9     height: container.height * container.scale
10     title: 'HomeScreen'
11
12     Image {
13         id: container
14         anchors.centerIn: parent
15         width: 1080
16         height: 1920
17         scale: 0.7
18         source: './images/AGL_HMI_Background_NoCar-01.png'
19
20         ColumnLayout {
21             anchors.fill: parent
22             spacing: 0
23             TopArea {
24                 id: topArea
25                 Layout.fillWidth: true
26                 Layout.preferredHeight: 218
27             }
28
29             Item {
30                 id: applicationArea
31                 Layout.fillWidth: true
32                 Layout.fillHeight: true
33                 Layout.preferredHeight: 1920 - 218 - 215
34             }
35
36             MediaArea {
37                 id: mediaArea
38                 Layout.fillWidth: true
39                 Layout.fillHeight: true
40                 Layout.preferredHeight: 215
41             }
42         }
43     }
44 }