feat: Implement a sleep timer button to the currently playing screen#617
feat: Implement a sleep timer button to the currently playing screen#617eddyizm merged 12 commits intoeddyizm:developmentfrom
Conversation
Implement sleep timer
Revert "Implement sleep timer"
|
This is fantastic! I want to add that the quick actions bar is also available in landscape. It is hidden by default but can be brought back by long-pressing the codec chip or the bitrate. Commenting it for tablet users that default to landscape view. |
Good to know, thanks! |
|
great. Thanks for the PR 👍 In the same time I implemented a sleep-timer as well, but you were faster 🥇 I let my AI tool check the differences: What PR 617 does better
What my version does better
Both implementations have strengths. The ideal PR would combine:
So maybe we can merge the strengths of both implementations. What would you suggest ? |
1. Process-death survival 2. End-of-track mode 3. Fade-out 4. Theme-aware icon 5. Localized duration labels
|
Thanks for your feedback @pLum0. I implemented all except for translations - I'll leave that to the experts. |
|
Hey @CtznSniiips, our first batch of merges brought some conflicts to your PR. Once you solve them we will merge this as part of the second batch for a pre-release. |
Adds a sleep timer to the now-playing screen. A new timer button sits in the bottom bar between the equalizer and queue buttons. Tapping it opens a dialog with preset durations — 5, 10, 15, 20, 30, 45, or 60 minutes — plus a "Custom…" option that accepts any number of minutes via a text input.
While the timer is counting down, the button turns accent-colored and a small countdown label (e.g. 4:37) appears beneath it. When the timer expires, playback pauses automatically. Tapping the button again while a timer is active shows the remaining time and offers a "Cancel Timer" button to stop it early.
Addresses #296