aboutsummaryrefslogtreecommitdiffstats
path: root/SettingsInfo.qml
blob: 92d910eb5397d67265b8c6801a4ac53be24c6082 (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
// Copyright (C) 2023 The Qt Company Ltd.
// Copyright (C) 2024 Automotive Grade Linux
// SPDX-License-Identifier: GPL-3.0+

pragma ComponentBehavior: Bound

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls.Fusion
import QtMultimedia
import Config

Rectangle {
    id: root
    implicitWidth: 380
    color: Config.mainColor
    border.color: "lightgrey"
    radius: 10

    property alias metadataInfo: metadataInfo
    required property MediaPlayer mediaPlayer
    required property int selectedAudioTrack
    required property int selectedVideoTrack
    required property int selectedSubtitleTrack

    MouseArea {
        anchors.fill: root
        preventStealing: true
    }

    Item {
        id: bar
        anchors.fill: root
        anchors.margins: 30

        Label {
            id: label
            font.bold: true
            font.pixelSize: 20
            text: qsTr("Metadata")
            color: Config.secondaryColor

            Layout.fillWidth: true
       }

       MetadataInfo {
           id: metadataInfo
           anchors.fill: bar
           anchors.topMargin: label.height + 0
       }
    }
}