summaryrefslogtreecommitdiff
path: root/navit/gui/qt5_qml/skins/menu.qml
blob: 540a16032776729c0ee7761da5b831e94de36c08 (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.Layouts 1.0
import QtQuick 2.2

Rectangle {
    id: rectangle
    visible: true
    height: 300
    color: "#000000"

    Rectangle {
        id: rectangle1
        x: 0
        y: 200
        height: 300
        color: "#1e1b18"
        anchors.verticalCenter: parent.verticalCenter
        anchors.left: parent.left
        anchors.leftMargin: 0
        anchors.right: parent.right
        anchors.rightMargin: 0
        
        Loader {
            id: menucontent
            width: parent.width
            height: parent.height
            Component.onCompleted: menucontent.source = "MainMenu.qml"
        }

    }

    MainButton {
        id: mainButton3
        width: 260
        height: 80
        radius: 1
        text: "Map"
        anchors.right: parent.right
        anchors.rightMargin: 0
        anchors.bottom: parent.bottom
        anchors.bottomMargin: 0
        Layout.fillHeight: true
        Layout.fillWidth: true
        icon: "icons/appbar.map.svg"
        onClicked: {
            mainMenu.state = ''
            mainMenu.source = ""
        }

    }

}