-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
base: main
Are you sure you want to change the base?
[Jetcaster] UI polish of TV module and resolved navigation & focus traversal issue in player screen #1481
Changes from all commits
570d133
f544f49
ad13454
a7db73a
6ec02a4
3d67f91
cf46ae8
3864461
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,9 +30,9 @@ import androidx.compose.ui.Modifier | |
import androidx.compose.ui.text.style.TextOverflow | ||
import androidx.compose.ui.unit.DpSize | ||
import androidx.compose.ui.unit.dp | ||
import androidx.tv.material3.Border | ||
import androidx.tv.material3.Card | ||
import androidx.tv.material3.CardDefaults | ||
import androidx.tv.material3.CardScale | ||
import androidx.tv.material3.MaterialTheme | ||
import androidx.tv.material3.Text | ||
import androidx.tv.material3.WideCardContainer | ||
|
@@ -72,8 +72,18 @@ private fun EpisodeThumbnail( | |
Card( | ||
onClick = onClick, | ||
interactionSource = interactionSource, | ||
scale = CardScale.None, | ||
scale = CardDefaults.scale(scale = 0.85f, focusedScale = 1.0f), | ||
shape = CardDefaults.shape(RoundedCornerShape(12.dp)), | ||
border = CardDefaults.border( | ||
focusedBorder = Border( | ||
border = _root_ide_package_.androidx.compose.foundation.BorderStroke( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add |
||
3.dp, | ||
color = MaterialTheme.colorScheme.border | ||
), | ||
inset = 3.dp, | ||
shape = RoundedCornerShape(15.dp) | ||
) | ||
), | ||
modifier = modifier, | ||
) { | ||
Thumbnail(episode = playerEpisode, size = JetcasterAppDefaults.thumbnailSize.episode) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,10 @@ import androidx.compose.foundation.shape.RoundedCornerShape | |
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.unit.dp | ||
import androidx.tv.material3.Border | ||
import androidx.tv.material3.Card | ||
import androidx.tv.material3.CardDefaults | ||
import androidx.tv.material3.CardScale | ||
import androidx.tv.material3.MaterialTheme | ||
import androidx.tv.material3.StandardCardContainer | ||
import androidx.tv.material3.Text | ||
import com.example.jetcaster.core.model.PodcastInfo | ||
|
@@ -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), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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(16.dp)), | ||
border = CardDefaults.border( | ||
focusedBorder = Border( | ||
border = _root_ide_package_.androidx.compose.foundation.BorderStroke( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add |
||
3.dp, | ||
color = MaterialTheme.colorScheme.border | ||
), | ||
inset = 3.dp, | ||
shape = RoundedCornerShape(19.dp) | ||
), | ||
) | ||
) { | ||
Thumbnail( | ||
podcastInfo = podcastInfo, | ||
|
There was a problem hiding this comment.
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.