Skip to content

Feature/animate miniplayer corners#139

Merged
theovilardo merged 3 commits intomasterfrom
feature/animate-miniplayer-corners
Sep 9, 2025
Merged

Feature/animate miniplayer corners#139
theovilardo merged 3 commits intomasterfrom
feature/animate-miniplayer-corners

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

No description provided.

This commit implements a feature where the miniplayer's corners become fully rounded when the navigation bar is hidden and in DEFAULT mode.

- Added an `isNavBarHidden` parameter to the `UnifiedPlayerSheet` composable.
- Passed the `shouldHideNavigationBar` state from `MainActivity` to the `UnifiedPlayerSheet`.
- Updated the corner radius calculation logic in `UnifiedPlayerSheet` to apply a 32.dp radius when the navbar is hidden in DEFAULT mode, ensuring the change is animated.
This commit implements a feature where the miniplayer's corners become fully rounded when the navigation bar is hidden and in DEFAULT mode.

- Added an `isNavBarHidden` parameter to the `UnifiedPlayerSheet` composable.
- Passed the `shouldHideNavigationBar` state from `MainActivity` to the `UnifiedPlayerSheet`.
- Updated the corner radius calculation logic in `UnifiedPlayerSheet` to apply a 32.dp radius when the navbar is hidden in DEFAULT mode, ensuring the change is animated. This is achieved by introducing a `collapsedRadius` variable that is used in the `lerp` function, preserving the animation.
This commit implements a feature where all four of the miniplayer's corners become fully rounded (60.dp) when the navigation bar is hidden and in DEFAULT mode.

- Added an `isNavBarHidden` parameter to the `UnifiedPlayerSheet` composable.
- Passed the `shouldHideNavigationBar` state from `MainActivity` to the `UnifiedPlayerSheet`.
- Updated the top and bottom corner radius calculation logic in `UnifiedPlayerSheet` to apply a 60.dp radius when the navbar is hidden in DEFAULT mode, ensuring the change is animated.
@theovilardo theovilardo merged commit 6c22883 into master Sep 9, 2025
@theovilardo theovilardo deleted the feature/animate-miniplayer-corners 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