dweymouth / supersonic

A lightweight and full-featured cross-platform desktop client for self-hosted music servers
GNU General Public License v3.0
682 stars 27 forks source link

Add functionality to repeat current track #204

Closed adamantike closed 1 year ago

adamantike commented 1 year ago

This new Loop mode keeps reproducing the current track, unless it is changed using the player controls to go to the next/previous track.

As in other applications, this is set by using the "Repeat" button, which now goes from "Off" -> "Repeat All" -> "Repeat One".

adamantike commented 1 year ago

@dweymouth, this is waiting for the Loop icon with the 1 within!

dweymouth commented 1 year ago

I added repeat icons here - you'll have to create ThemedResource wrappers for both of them in ui/theme/theme.go and create theme icon names. Hopefully they update correctly with the theme light/dark switch and aren't affected by https://github.com/fyne-io/fyne/issues/3900

adamantike commented 1 year ago

That was fast! :)

Just updated the icons, and this is now ready for review. Luckily, I haven't been able to reproduce that bug.