summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/home.qml
blob: c45f66782f18e6d2363c7b9d800e565c591d18a9 (plain)
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
42
43
44
45
46
47
48
49
50
51
import QtQuick 2.0
import "../Components"
import "../Layouts"
import com.ford.phonecore 1.0

LeftThirdSection {
    header: "Good Morning, Jen"

    Column {
        anchors.left: parent.left
        anchors.leftMargin: 60
        spacing: 40
        anchors.verticalCenter: parent.verticalCenter

        Weather {}
        Weather {
            text: "Tonight"
            temp: "55"
            image: "../Assets/CloudNight.png"
        }
    }


    Image {
        id: schedule
        source: "../Assets/CMaxCal.png"
        anchors.right: parent.right
        anchors.rightMargin: 70
        anchors.verticalCenter: parent.verticalCenter
    }

    Column {
        anchors.right: schedule.left
        anchors.rightMargin: 20
        anchors.top: schedule.top
        anchors.topMargin: 5
        spacing: 40

        Button {
            text: "Dial"
        }
        Button {
            text: "Navigate"
        }
        Button {
            text: "Siri"
            onPress: PhoneCore.siriEyesFree()
            visible: PhoneCore.device_state === "connected" || PhoneCore.device_state === "playing"
        }
    }
}