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

[Jetcaster] UI polish of TV module and resolved navigation & focus traversal issue in player screen #1481

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

pflammertsma
Copy link
Member

No description provided.

@pflammertsma pflammertsma requested a review from a team as a code owner October 4, 2024 14:19
@pflammertsma pflammertsma requested review from dturner and chikoski and removed request for dturner October 4, 2024 14:19
@@ -72,8 +72,18 @@ private fun EpisodeThumbnail(
Card(
onClick = onClick,
interactionSource = interactionSource,
scale = CardScale.None,
scale = CardDefaults.scale(scale = 0.85f, focusedScale = 1.0f),
Copy link
Contributor

Choose a reason for hiding this comment

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

Scaling is intentionally disabled. We should keep the original intention.

@@ -40,8 +41,18 @@ internal fun PodcastCard(
Card(
onClick = onClick,
interactionSource = it,
scale = CardScale.None,
shape = CardDefaults.shape(RoundedCornerShape(12.dp))
scale = CardDefaults.scale(scale = 0.9f, focusedScale = 1.0f),
Copy link
Contributor

Choose a reason for hiding this comment

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

Scaling is intentionally disabled. Would you keep the original code?

shape = CardDefaults.shape(RoundedCornerShape(12.dp)),
border = CardDefaults.border(
focusedBorder = Border(
border = _root_ide_package_.androidx.compose.foundation.BorderStroke(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add androidx.compse.foundation.BorderStroke to import section and refer the imported symbol here?

shape = CardDefaults.shape(RoundedCornerShape(16.dp)),
border = CardDefaults.border(
focusedBorder = Border(
border = _root_ide_package_.androidx.compose.foundation.BorderStroke(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add androidx.compse.foundation.BorderStroke to import section and refer the imported symbol here?

@@ -347,6 +348,10 @@ private fun PlayerControl(
modifier = Modifier
.size(JetcasterAppDefaults.iconButtonSize.large.intoDpSize())
.focusRequester(playPauseButton)
.onGloballyPositioned {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the onGloballyPositioned modifier as PlayPauseButton is always in the viewport.

@@ -361,6 +366,12 @@ private fun PlayerControl(
ElapsedTimeIndicator(timeElapsed, length, skip, rewind)
}
}
LaunchedEffect(isSafeToSetInitialFocus) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can call playPauseButton.requestFocus without checking isSafeToInitialFocus flag.

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.

2 participants