merge conflicts

This commit is contained in:
Siiiiinth
2026-02-09 08:11:05 +01:00
56 changed files with 4364 additions and 369 deletions
+11
View File
@@ -35,6 +35,7 @@ func NewBottomPanel(pm *backend.PlaybackManager, im *backend.ImageManager, contr
bp.ExtendBaseWidget(bp)
pm.OnSongChange(bp.onSongChange)
pm.OnRadioMetadataChange(bp.onRadioMetadataChange)
pm.OnWaveformImgUpdate(bp.updateWaveformImg)
pm.OnPlayTimeUpdate(func(cur, total float64, _ bool) {
fyne.Do(func() {
@@ -146,6 +147,16 @@ func (bp *BottomPanel) onSongChange(song mediaprovider.MediaItem, _ *mediaprovid
})
}
func (bp *BottomPanel) onRadioMetadataChange(radioName, title, artist string) {
fyne.Do(func() {
bp.NowPlaying.Update(&mediaprovider.Track{
Title: title,
ArtistNames: []string{artist},
Album: radioName,
})
})
}
func (bp *BottomPanel) updateWaveformImg(img *backend.WaveformImage) {
fyne.Do(func() {
bp.Controls.UpdateWaveformImg(img)