aboutsummaryrefslogtreecommitdiffstats
path: root/SettingsInfo.qml
diff options
context:
space:
mode:
Diffstat (limited to 'SettingsInfo.qml')
-rw-r--r--SettingsInfo.qml52
1 files changed, 52 insertions, 0 deletions
diff --git a/SettingsInfo.qml b/SettingsInfo.qml
new file mode 100644
index 0000000..92d910e
--- /dev/null
+++ b/SettingsInfo.qml
@@ -0,0 +1,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
+ }
+ }
+}