Files
qyouradio/Main.qml

64 lines
1.6 KiB
QML
Raw Normal View History

2025-10-11 02:30:58 +02:00
import QtQuick 6.8
import QtQuick.Controls 6.8
import QtQuick.Controls.Basic 6.8
2025-10-11 02:30:58 +02:00
import QtQuick.Layouts 6.8
2025-10-11 02:30:58 +02:00
import QYRComponents 1.0
ApplicationWindow {
2025-10-11 17:55:56 +02:00
width: 1280
height: 800
title: qsTr("QYouRadio")
2025-10-11 02:30:58 +02:00
ColumnLayout {
anchors.fill: parent
anchors.margins: 10
2025-10-11 17:55:56 +02:00
TabBar {
id: tabbar
Layout.fillWidth: true
spacing: 10
TabButton {
2025-10-11 17:55:56 +02:00
text: qsTr("Autoradio")
}
// TabButton {
// text: qsTr("Live Mix")
// }
// TabButton {
// text: qsTr("Deep Bass")
// }
TabButton {
2025-10-11 17:55:56 +02:00
text: qsTr("Settings")
}
}
StackLayout {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.margins: 10
2025-10-11 17:55:56 +02:00
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 {
}
2025-10-11 02:30:58 +02:00
}
YouAds {
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter
visible: tabbar.currentIndex != 1
}
2025-10-11 02:30:58 +02:00
}
}