feat: add miniplayer mode#278
Merged
Merged
Conversation
Signed-off-by: LargeModGames <84450916+LargeModGames@users.noreply.github.com>
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.
This pull request introduces a new "Miniplayer" full-screen playbar view to the application, along with full keyboard and mouse support, configuration, and tests. The changes touch the core app logic, user configuration, layout, event handling, and UI, ensuring the miniplayer is seamlessly integrated and behaves consistently with other full-screen views.
Key changes include:
Miniplayer View Integration
MiniPlayervariants to theActiveBlockandRouteIdenums, enabling navigation and state management for the new view.toggle_miniplayerfunction and related event handling insrc/tui/handlers/mod.rs, allowing users to enter or exit the miniplayer view via a configurable keybinding, with proper stack navigation and escape handling.draw_miniplayerrendering call to the UI runner, ensuring the miniplayer is displayed when active.Keybinding and Configuration
miniplayer_view) inUserConfigand related structs, including YAML serialization/deserialization, default assignment, and settings UI integration.Layout and Mouse Support
miniplayer_playbar_arealayout function to center and size the playbar appropriately in the miniplayer view, with tests for various terminal sizes.Event Handling and Playbar Logic
Tests