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.runtime.getValue
import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier 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.draw.clip
import androidx.compose.ui.geometry.Offset import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
@@ -148,7 +150,10 @@ fun ArtistDetailScreen(
imageVector = Icons.AutoMirrored.Rounded.ArrowBack, imageVector = Icons.AutoMirrored.Rounded.ArrowBack,
contentDescription = null, contentDescription = null,
tint = Color.Black.copy(alpha = 0.8f), 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( Icon(
imageVector = Icons.AutoMirrored.Rounded.ArrowBack, imageVector = Icons.AutoMirrored.Rounded.ArrowBack,
@@ -197,11 +197,15 @@ fun LibraryScreen(
.wrapContentHeight(unbounded = true) .wrapContentHeight(unbounded = true)
.fillMaxWidth(), .fillMaxWidth(),
) { ) {
val logoSize = 28.dp
Icon( Icon(
painter = painterResource(R.drawable.ic_stat_name), painter = painterResource(R.drawable.ic_stat_name),
contentDescription = null, contentDescription = null,
tint = MaterialTheme.colorScheme.onBackground, 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(
text = selectedTab.label, text = selectedTab.label,