Improve title pan animation, add slideout animation
Some checks failed
Build / build-linux (push) Failing after 18s
Build / build-windows (push) Has been cancelled

This commit is contained in:
Dark Steveneq
2025-10-14 23:03:38 +02:00
parent 18ad69ba5d
commit 6d0689718d
2 changed files with 60 additions and 35 deletions

View File

@@ -35,7 +35,7 @@ Item {
property alias playing: player.playing
property alias volume: output.volume
readonly property var loading: player.mediaStatus == Qt.LoadingMedia
property var loading: player.mediaStatus == Qt.LoadingMedia
property var currentIndex: null
property var currentStream: null
@@ -71,7 +71,7 @@ Item {
audioOutput: AudioOutput {
id: output
volume: 0.4
volume: 0.3
}
onErrorOccurred: function(error, errorString) {
@@ -99,11 +99,10 @@ Item {
console.warn("Unknown slug encountered in metadata: " + station.server_name);
return
}
parent.streams[index].title = station.title;
parent.streams[index].title = station.title.replace(/\[[a-zA-Z0-9]{11}\]/, "");
parent.streams[index].listeners = station.listeners;
if (index == parent.currentIndex) {
parent.currentStream.title = station.title;
parent.currentStream.listeners = station.listeners;
parent.currentStream = parent.streams[index];
}
});
// } catch {