First integration of new HMI design
[staging/HomeScreen.git] / HomeScreen / qml / main.qml
1 /*
2  * Copyright (C) 2016 The Qt Company Ltd.
3  * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18 import QtQuick 2.2
19 import QtQuick.Window 2.1
20 import QtQuick.Layouts 1.1
21
22 Window {
23     visible: true
24     flags: Qt.FramelessWindowHint
25     width: container.width * container.scale
26     height: container.height * container.scale
27     title: 'HomeScreen'
28
29     Image {
30         id: container
31         anchors.centerIn: parent
32         width: 1080
33         height: 1920
34         scale: 1.0
35         source: './images/AGL_HMI_Background_NoCar-01.png'
36
37         ColumnLayout {
38             anchors.fill: parent
39             spacing: 0
40             TopArea {
41                 id: topArea
42                 Layout.fillWidth: true
43                 Layout.preferredHeight: 218
44             }
45
46             Item {
47                 id: applicationArea
48                 Layout.fillWidth: true
49                 Layout.fillHeight: true
50                 Layout.preferredHeight: 1920 - 218 - 215
51             }
52
53             MediaArea {
54                 id: mediaArea
55                 Layout.fillWidth: true
56                 Layout.fillHeight: true
57                 Layout.preferredHeight: 215
58             }
59         }
60     }
61 }