mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +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.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,
|
||||||
|
|||||||
Reference in New Issue
Block a user