2025-10-12 03:10:14 +02:00
|
|
|
import QtQuick 6.8
|
|
|
|
|
import QtQuick.Controls 6.8
|
|
|
|
|
import QtQuick.Controls.Basic 6.8
|
|
|
|
|
import QtQuick.Layouts 6.8
|
|
|
|
|
import QYRComponents 1.0
|
|
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
2025-10-14 13:36:21 +02:00
|
|
|
property var index: null
|
2025-10-12 03:10:14 +02:00
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.bottomMargin: 20
|
2025-10-17 22:29:12 +02:00
|
|
|
text: qsTr(Player.stations[index].name)
|
|
|
|
|
font.bold: true
|
2025-10-12 03:10:14 +02:00
|
|
|
heading: "h2"
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-17 22:29:12 +02:00
|
|
|
Item {
|
|
|
|
|
Layout.fillHeight: true
|
2025-10-12 03:10:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
Layout.fillWidth: true
|
2025-10-17 22:29:12 +02:00
|
|
|
text: Player.stations[index].songTitle
|
|
|
|
|
font.pixelSize: 72
|
2025-10-12 03:10:14 +02:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
2025-10-17 22:29:12 +02:00
|
|
|
Layout.fillWidth: true
|
|
|
|
|
text: "Listening: " + Player.stations[index].listeners
|
2025-10-14 13:36:21 +02:00
|
|
|
heading: "h2"
|
2025-10-12 03:10:14 +02:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
}
|
2025-10-17 22:29:12 +02:00
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
visible: (Player.currentIndex > -1 && Player.currentIndex != parent.index)
|
|
|
|
|
text: qsTr("Another station is currently playing")
|
|
|
|
|
heading: "h2"
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
}
|
|
|
|
|
}
|