summaryrefslogtreecommitdiff
path: root/lua/playing.lua
AgeCommit message (Collapse)Author
2025-01-17ailurux/now-playing-menu (#184)ailurux
Overflow menu for the now playing screen. New home for the info screen here. Adds quick navigation to current album or artist (thanks tjk!) and clear queue button. Also fixed up the way the now playing screen looks when queue is cleared (remove previous duration and don't show "loading" if nothing is actively loading). Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/184 Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2025-01-13Merge pull request 'Update licensing info' (#174) from ↵cooljqln
tjk/tangara-fw:update-reuse into main Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/174 Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org>
2025-01-08Add missing copyright/license headersTom Kirchner
2025-01-07Use "Unknown Artist" when tag is missingTom Kirchner
This fixes the case where you switch from a file with an artist to one with no artist, which would show the old artist. The album field is already hidden, title shows the filename if missing, and the track info screen is fully reset, so this covers everything currently present.
2025-01-07Improvements to the queue for shuffling/playing all (#170)ailurux
Queue now has a separate 'ready' property to indicate it's ready to be used, which is independent from whether it's still loading tracks in. This also improves the response time for shuffling all tracks (we will initially pick a random track in the first 100 tracks whilst the rest of the tracks are loading). This should also fix issues where one song will start playing and then repeat itself when the queue finishes loading, and hopefully solve #160 as well (though I couldn't actually repro this myself). Co-authored-by: jacqueline <me@jacqueline.id.au> Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/170 Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org> Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2025-01-06Reduce horizontal spacing on controls for more room for additional info buttonailurux
2025-01-02Add track info screenTom Kirchner
2025-01-02Hide the album line if the current track has no albumjacqueline
2024-12-29Show album name on now-playing screenTom Kirchner
2024-12-19Queue repeat modes (#126)ailurux
This replaces the previous system of a separate track and queue repeat, with a RepeatMode type with the following options and behaviours: - OFF: No repeat, queue or track. When the current queue finishes, shuffled or otherwise, playback will stop. - REPEAT_TRACK: The current track will loop indefinitely, unless next is explicitly called through some user action (ie using the next button in the now playing screen) - REPEAT_QUEUE: The entire queue will repeat indefinitely. When shuffled is enabled this will repeat the queue with new combinations each cycle. The repeat mode is persisted in non-volatile storage, so the behaviour will be consistent throughout restarts and queue replacements, and so the "queue repeat by default" use case can be met in this way. In addition, I've made it work a little nicer when the queue runs out in the now playing screen, keeping the previously played track shown and playback can be continued by using the play button or by going to a previous song in the queue. Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/126 Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-09-24Format hours properly for times shown and ensure centering of playlist ↵ailurux
position labels
2024-09-10Rename set_style to set_subjectailurux
2024-08-29use snake_case consistently in lua function namesjacqueline
2024-08-28Handle the loading state whilst appending many tracks betterjacqueline
1) Update the queue length periodically so that the user can see we're working 2) Clear any previous track and display "loading..." instead
2024-08-27Various UI tweaks and improvementsailurux
2024-08-12daniel/theme-setting (#87)ailurux
- Themes can be loaded from disk and built-in - Themes can be selected in a new themes menu of the settings screen - Some touch-ups to existing themes - The saved theme is persisted in nvs Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/87 Reviewed-by: cooljqln <cooljqln@noreply.codeberg.org> Co-authored-by: ailurux <ailuruxx@gmail.com> Co-committed-by: ailurux <ailuruxx@gmail.com>
2024-06-28WIP start on an updated main menu uijacqueline
2024-06-27Add a button to shuffle+play the current viewjacqueline
2024-06-18Fix issue with previous not working with shuffleailurux
2024-06-14Fix missing duration when no track is playingjacqueline
2024-05-29Start on TTS support by logging the data that will become TTS linesjacqueline
Includes some misc cleanup of haptic double-triggering (or non-triggering), since those cases all end up being TTS event double-reporting, which to me crosses the threshold from "annoying" to "usability issue"
2024-05-16Handle tracks with no duration in the playback screenjacqueline
2024-04-18Merge the StatusBar bindings table with each screen's bindings tablejacqueline
2024-04-11show a preview of the new track position while scrubbingjacqueline
2024-04-11Use a fix scrubber range on the playing screenjacqueline
this ensure that the amount the scrubber moves for each tick of the input remains consistent, even when tracks have very different durations
2024-04-09Go to the start of the current track before the previous track when hitting backjacqueline
2024-03-28Merge branch 'main' into themesailurux
2024-03-27Update icons and volume dialogue to use themesailurux
2024-03-20Support pinning decoded images to RAMjacqueline
2024-03-07use prototype inheritance for lua screens, rather than functionsjacqueline
this gives us a way to give each screen nice little hooks, like 'onShown' and 'onHidden'. later we can use these hooks to disable bindings for screens that aren't in-use.
2024-02-16Only update scrubber if not currently draggingailurux
2024-02-16WIP: seeking in lua exampleailurux
2024-02-12Add buttons for shuffle + repeat trackailurux
2024-02-06focus the play/pause toggle when entering the now playing screenjacqueline
2024-01-23Add next+prev buttons to the Now Playing screen.Robin Howard
2024-01-18wrap long artist names and titlesjacqueline
2023-11-25implement play/pausejacqueline
2023-11-24Migrate 'now playing' screen to luajacqueline
2023-11-23Add a second font, flesh out browser screenjacqueline