shrink the header logo and blur the arrow shadow

This commit is contained in:
austinried
2026-10-04 00:29:52 +00:00
parent e98d5ad900
commit c6d837ae0d
2 changed files with 11 additions and 2 deletions
@@ -29,6 +29,8 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.BlurredEdgeTreatment
import androidx.compose.ui.draw.blur
import androidx.compose.ui.draw.clip
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
@@ -148,7 +150,10 @@ fun ArtistDetailScreen(
imageVector = Icons.AutoMirrored.Rounded.ArrowBack,
contentDescription = null,
tint = Color.Black.copy(alpha = 0.8f),
modifier = Modifier.offset(x = 0.dp, y = 2.dp),
modifier =
Modifier
.offset(x = 0.dp, y = 2.dp)
.blur(6.dp, BlurredEdgeTreatment.Unbounded),
)
Icon(
imageVector = Icons.AutoMirrored.Rounded.ArrowBack,
@@ -197,11 +197,15 @@ fun LibraryScreen(
.wrapContentHeight(unbounded = true)
.fillMaxWidth(),
) {
val logoSize = 28.dp
Icon(
painter = painterResource(R.drawable.ic_stat_name),
contentDescription = null,
tint = MaterialTheme.colorScheme.onBackground,
modifier = Modifier.padding(start = 4.dp, top = titleTop).size(40.dp),
modifier =
Modifier
.padding(start = 12.dp, top = titleTop + (titleLineHeight - logoSize) / 2)
.size(logoSize),
)
Text(
text = selectedTab.label,