summaryrefslogtreecommitdiff
path: root/luals-stubs
AgeCommit message (Collapse)Author
2025-03-19ailurux/button-media-controls (#264)ailurux
Splits the control scheme into separate schemes for the side buttons and touchwheel, allowing them to be configured independently of each other. At least one input must be used for navigation, and there are guards to prevent locking oneself out of any input. If the input scheme is invalid, a pop up will show alerting the user. Different behaviours can be bound to the side buttons for when the device is locked or unlocked. This PR also adds a mode for these buttons that controls media playback (prev/next on up/down, pressing both buttons toggles play/pause). There are some changes to the way inputs handle locking. Rather than the input devices tracking the current locked mode, different input devices are created on lock depending on the mode that is configured. Reviewed-on: https://codeberg.org/cool-tech-zone/tangara-fw/pulls/264 Co-authored-by: ailurux <ailurux@noreply.codeberg.org> Co-committed-by: ailurux <ailurux@noreply.codeberg.org>
2025-01-08Add missing copyright/license headersTom Kirchner
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>
2024-12-29Write settings to nvs when changing from the setting screenClayton Craft
Otherwise, settings may not actually be saved if the device crashes/ reboots unexpectedly. Fixes #148
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-12-18Add long-right-press as a shortcut to the now playing screenjacqueline
Implemented for both the wheel and d-pad input methods.
2024-09-27Added listened indicator for audiobooks and podcastsailurux
2024-09-24Add lua stub for play_countjacqueline
2024-09-19Add luals stubs for new methodsailurux
2024-09-10Rename set_style to set_subjectailurux
2024-08-29use snake_case consistently in lua function namesjacqueline
2024-08-29Lua API improvements and fixesailurux
Co-authored-by: jacqueline <me@jacqueline.id.au>
2024-08-15Add luals-stub for queue open_playlistailurux
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-07-24Add a settings screen with power+battery infojacqueline
Mostly for debugging, but also u can toggle fast charging off and on now
2024-06-14Load fonts dynamically from /luajacqueline
This unfortunately slows boot time by a bit, but I think we should be able to reclaim that time eventually.
2024-06-12WIP fix issues introduced by lvgl version bumpjacqueline
2024-03-21Add doc for canPopjacqueline
2024-03-20Support pinning decoded images to RAMjacqueline
2024-03-08Bring a modified luavgl stub file into our stubsjacqueline
2024-03-07Use luals-stubs as the source of truth for docs, instead of maintainingjacqueline
separate docs stubs Includes introducing a cool new script to turn lua-language-server's json output into markdown documentation.
2024-02-12Add buttons for shuffle + repeat trackailurux
2024-01-23Plumb queue next+previous through to Lua, incl. with stubs and docs.Robin Howard
2024-01-05split lua stubs into one set for ldoc, and one set for lua-lsjacqueline