Repository navigation
Conversation
A floating button in the Library, after Auxio's, filled with the accent colour. It plays a shuffled queue from the library, following the Downloaded and Favorites filters, capped by a new Shuffle All Limit setting in Sound & Playback (default 500 songs). It hides on the Playlists tab and while the A-Z scroller is being dragged.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a shuffle-all floating button to the Library, like Auxio's. It plays your library in random order from any of the Library's tabs, which is what #262 asks for.
Changes
ShuffleAllButton: a rounded button at the bottom right of the Library, in the theme's accent colour.shuffleAllService. It follows the Library's Downloaded and Favorites filters, so in offline mode it only queues downloaded songs.listRandomSongs(ORDER BY RANDOM() LIMIT n).fastScrollStoretells the Library when the A-Z scroller is being dragged.About the limit setting: I kept it separate from Appearance & Layout > List Length. That setting (default 20, max 100) sizes the Home lists, top songs, similar songs and the generated mixes. A whole-library shuffle wants a much bigger queue, and raising List Length to get one would resize everything else. If you'd rather it reuse List Length, I'm happy to change it.
Testing
npx tsc --noEmitpassesnpx jest --no-coveragepassesAlso passing:
validate-intl,validate-translations,madge --circularandvalidate:modules.Screenshots
Related Issues
Related: #262, #278