Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite NowPlayingView in compose #4033

Merged

Conversation

nielsvanvelzen
Copy link
Member

Now that compose supports focus I can finally open this PR. It's been rewritten multiple times the past year as this was my "is compose ready yet" branch.

Changes

  • Rewrite NowPlayingView in compose
    • Shows artist & song title instead of song title & time
    • Shows time/duration with a visual indicator on the bottom of the button

Screenshots
image

Issues

@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Sep 29, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.0 milestone Sep 29, 2024
import org.koin.compose.koinInject

@Composable
fun NowPlayingComposable() {

Check warning

Code scanning / detekt

One method should have one responsibility. Long methods tend to handle many things at once. Prefer smaller methods to make them easier to understand. Warning

The function NowPlayingComposable is too long (84). The maximum length is 60.
Copy link
Member

@crobibero crobibero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is super neat

@nielsvanvelzen nielsvanvelzen merged commit c993be8 into jellyfin:master Sep 30, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the compose-nowplayingview branch September 30, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants