Files
qyouradio/Main.qml
2025-10-12 18:09:34 +02:00

64 lines
1.6 KiB
QML
Executable File

import QtQuick 6.8
import QtQuick.Controls 6.8
import QtQuick.Controls.Basic 6.8
import QtQuick.Layouts 6.8
import QYRComponents 1.0
ApplicationWindow {
width: 1280
height: 800
title: qsTr("QYouRadio")
ColumnLayout {
anchors.fill: parent
anchors.margins: 10
TabBar {
id: tabbar
Layout.fillWidth: true
spacing: 10
TabButton {
text: qsTr("Autoradio")
}
// TabButton {
// text: qsTr("Live Mix")
// }
// TabButton {
// text: qsTr("Deep Bass")
// }
TabButton {
text: qsTr("Settings")
}
}
StackLayout {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.margins: 10
currentIndex: tabbar.currentIndex
ViewPlayer {
title: qsTr("Autoradio")
streamURL: "https://youradio.nonamesoft.xyz/api/autoradio"
}
// ViewPlayer {
// title: qsTr("Live Radio")
// streamURL: "https://youradio.nonamesoft.xyz/api/live"
// }
// ViewPlayer {
// title: qsTr("Deep Bass")
// streamURL: "https://youradio.nonamesoft.xyz/api/deepbass"
// }
ViewSettings {
}
}
YouAds {
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter
visible: tabbar.currentIndex != 1
}
}
}