summaryrefslogtreecommitdiff
path: root/navit/gui/qt5_qml/skins/modern/menu.qml
blob: bcca54b0b13fe328c255d4355b79d31176a61384 (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
52
53
54
55
56
57
58
59
60
61
import QtQuick.Layouts 1.0
import QtQuick 2.2

Item {
    Rectangle {
        id: menuArea
        color: "#1e1b18"
        width: parent.width
        y: topBar.height
        height: parent.height - ( topBar.height + bottomBar.height )

        Loader {
            id: menucontent
            width: parent.width
            height: parent.height
            Component.onCompleted: {
                console.log("submenu : " + mainMenu.submenu)
                menucontent.source = mainMenu.submenu
            }
        }
    }

    Rectangle {
        id: bottomBar
        width: parent.width
        height: 64
        color: "#1e1b18"
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 0

        MainButton {
            id: mainButton3
            x: 380
            y: 220
            width: 260
            height: 56
            radius: 1
            text: "Map"
            anchors.right: parent.right
            anchors.rightMargin: 4
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 4
            Layout.fillHeight: true
            Layout.fillWidth: true
            icon: "icons/appbar.map.svg"
            onClicked: {
                 container.hideMainMenu()
            }

        }
    }

    Rectangle {
        id: topBar
        width: parent.width
        height: 80
        color: "#1e1b18"
        anchors.top: parent.top
    }

}