summaryrefslogtreecommitdiff
path: root/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/Sections/Media/usb.qml
blob: 7236e98cbec101ec791a69edbc94d79975bd867d (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
import QtQuick 2.0
import "../../Components"
import "../../Layouts"

MediaPlayerLayout {
    header: "USB"
    id: usb

    Button {
        text: "Browse Media"
        anchors.top: parent.top
        anchors.right: parent.right
        anchors.rightMargin: 40
        anchors.topMargin: 75

        onPress: parent.state = 'browse'
    }

    states: [
        State {
            name: 'browse'
            PropertyChanges { target: browse_interface; visible: true; opacity: 0.9 }
        }

    ]

    Rectangle {
        color: "#000000"
        opacity: 0
        anchors.fill: parent
        radius: 10
        visible: false
        id: browse_interface

        BackButton {
            id: back_button
            anchors.topMargin: 80
            anchors.leftMargin: 20
        }


        H2 {
            id: header
            text: "Browse Media"
            anchors.topMargin: 80
        }

        Item {
            anchors.fill: parent
            id: browse_container
        }

        Button {
            anchors.top: back_button.bottom
            anchors.left: parent.left
            text: "Jump"
        }
    }
}