mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-18 05:15:41 +00:00
Soften detail hero bottom gradient
This commit is contained in:
parent
3fcf1aa752
commit
3525673e70
1 changed files with 9 additions and 5 deletions
|
|
@ -184,14 +184,18 @@ fun DetailHero(
|
|||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.height(260.dp)
|
||||
.height(if (isTablet) 360.dp else 320.dp)
|
||||
.align(Alignment.BottomCenter)
|
||||
.background(
|
||||
Brush.verticalGradient(
|
||||
colors = listOf(
|
||||
Color.Transparent,
|
||||
MaterialTheme.colorScheme.background.copy(alpha = 0.7f),
|
||||
MaterialTheme.colorScheme.background,
|
||||
colorStops = arrayOf(
|
||||
0.00f to Color.Transparent,
|
||||
0.16f to MaterialTheme.colorScheme.background.copy(alpha = 0.04f),
|
||||
0.32f to MaterialTheme.colorScheme.background.copy(alpha = 0.14f),
|
||||
0.50f to MaterialTheme.colorScheme.background.copy(alpha = 0.34f),
|
||||
0.68f to MaterialTheme.colorScheme.background.copy(alpha = 0.62f),
|
||||
0.84f to MaterialTheme.colorScheme.background.copy(alpha = 0.84f),
|
||||
1.00f to MaterialTheme.colorScheme.background,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue