mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 15:11:58 +01:00
shrink the header logo and blur the arrow shadow
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user