From 698e4d6870d4a4e92bdb4cbfa8686a0f65cffca8 Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Fri, 26 Dec 2025 07:32:49 +0000 Subject: [PATCH] update: qt6,qml,modplayerpanel (1 files) --- frontends/qt6/ModPlayerPanel.qml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 frontends/qt6/ModPlayerPanel.qml diff --git a/frontends/qt6/ModPlayerPanel.qml b/frontends/qt6/ModPlayerPanel.qml new file mode 100644 index 000000000..c39ea90c1 --- /dev/null +++ b/frontends/qt6/ModPlayerPanel.qml @@ -0,0 +1,41 @@ +import QtQuick 2.15 +import QtQuick.Layouts 1.15 +import "qmllib/Material" as Material + +Material.MaterialSurface { + id: panel + width: 420 + height: 220 + ColumnLayout { + anchors.fill: parent + anchors.margins: 16 + spacing: 14 + + Material.MaterialTypography { variant: "h2"; text: "MOD Player" } + Text { + text: "Play the procedural Retro Gaming MOD and watch the visualizer react." + font.pixelSize: 14 + color: Material.MaterialPalette.onSurface + } + + RowLayout { + spacing: 12 + Material.MaterialButton { + text: ModPlayer.playing ? "Replay MOD" : "Play MOD" + onClicked: ModPlayer.play("frontends/qt6/assets/audio/retro-gaming.mod") + } + Material.MaterialButton { + text: "Stop" + outlined: true + onClicked: ModPlayer.stop() + enabled: ModPlayer.playing + } + } + + Text { + text: ModPlayer.playing ? "Status: Playing" : "Status: Idle" + font.pixelSize: 12 + color: Material.MaterialPalette.onSurface + } + } +}