0.2.88
This commit is contained in:
@@ -1124,9 +1124,9 @@ internal fun MetadataHero(
|
||||
.clipToBounds()
|
||||
.background(
|
||||
Brush.verticalGradient(
|
||||
0f to MembySurface.copy(alpha = 0.52f),
|
||||
0.72f to MembySurface.copy(alpha = 0.30f),
|
||||
1f to Color.Transparent,
|
||||
0f to MembySurface.copy(alpha = 0.68f),
|
||||
0.72f to MembySurface.copy(alpha = 0.46f),
|
||||
1f to MembySurface.copy(alpha = 0.16f),
|
||||
),
|
||||
),
|
||||
) {
|
||||
|
||||
@@ -166,9 +166,9 @@ internal fun homeHeaderHeight(viewportHeight: Dp, showHero: Boolean): Dp =
|
||||
(viewportHeight * 0.46f).coerceIn(232.dp, 300.dp)
|
||||
} else {
|
||||
// The focused metadata surface is also the clean upper boundary for shelves as
|
||||
// they move vertically. About 20dp more coverage at common TV heights keeps a
|
||||
// departing card's last text line from being exposed without costing another row.
|
||||
(viewportHeight * 0.46f).coerceIn(240.dp, 320.dp)
|
||||
// they move vertically. Give it a little more room than the cinematic hero so the
|
||||
// title, ratings and overview read as one persistent browse panel.
|
||||
(viewportHeight * 0.48f).coerceIn(250.dp, 330.dp)
|
||||
}
|
||||
|
||||
private val LazyListStateMapSaver: Saver<MutableMap<String, LazyListState>, Any> = listSaver(
|
||||
|
||||
Reference in New Issue
Block a user