Skip to content

Feature/player enhancements#142

Merged
theovilardo merged 2 commits intomasterfrom
feature/player-enhancements
Sep 10, 2025
Merged

Feature/player enhancements#142
theovilardo merged 2 commits intomasterfrom
feature/player-enhancements

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

No description provided.

google-labs-jules bot and others added 2 commits September 9, 2025 22:50
This commit introduces several enhancements to the mini-player dismissal and undo functionality.

1.  **Haptic Feedback on Dismiss Snap:**
    Adds haptic feedback at the exact moment the swipe-to-dismiss gesture snaps from the "tension" phase to the "free drag" phase, providing a more tactile and satisfying user experience.

2.  **Undo Bar Visibility and Animation:**
    The "Undo" bar is now correctly displayed after dismissing the mini-player. It has been moved from the player sheet to the main activity to ensure it renders above the navigation bar in all modes. The bar now animates in by sliding up from the bottom of the screen.

3.  **Undo Bar Close Button:**
    A close button has been added to the "Undo" bar, allowing users to dismiss it immediately without waiting for the timeout. A corresponding function has been added to the ViewModel to handle this action.
This commit introduces several minor visual and stylistic changes:

- **DismissUndoBar:**
    - Updated the "Close" icon to `Icons.Rounded.Close`.
    - Styled the "Close" button as a `FilledIconButton` with a `surfaceContainerLow` background.
    - Adjusted padding and text style for a more compact look.
    - The bar itself now uses `CircleShape` and is constrained to `MiniPlayerHeight` with horizontal padding applied to its modifier.
- **AboutScreen:**
    - Replaced the app icon with `pixelplay_base_monochrome.xml`.
    - Removed the explicit scaling of the app icon.
- **UnifiedPlayerSheet:**
    - Ensured `LocalHapticFeedback.current` is initialized once at the component level to avoid redundant calls.
- **Changelog:**
    - Updated changelog text to reflect recent changes, including haptic feedback and M3E animations for the player, and fixing navigation bar padding.
- **MainActivity:**
    - Standardized padding for the `DismissUndoBar` to match its updated internal padding.
    - Updated "Preparing your library..." and permission request texts to English.
- **New Assets:**
    - Added `pixelplay_base_monochrome.xml` (app icon).
    - Added `theveloper_icon.png`.
@theovilardo theovilardo merged commit c4ee478 into master Sep 10, 2025
@theovilardo theovilardo deleted the feature/player-enhancements branch October 16, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant