home: bold the section headers and tighten the header-to-content gap

This commit is contained in:
austinried
2026-10-04 00:30:06 +00:00
parent b62d6c13c9
commit 141529d139
@@ -33,6 +33,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip import androidx.compose.ui.draw.clip
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
@@ -250,12 +251,13 @@ private fun HomeSectionHeader(
onMore: (() -> Unit)?, onMore: (() -> Unit)?,
) { ) {
Row( Row(
modifier = Modifier.fillMaxWidth().padding(start = 16.dp, end = 4.dp, top = 20.dp, bottom = 4.dp), modifier = Modifier.fillMaxWidth().padding(start = 16.dp, end = 4.dp, top = 20.dp, bottom = 0.dp),
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
Text( Text(
text = title, text = title,
style = MaterialTheme.typography.titleLarge, style = MaterialTheme.typography.titleLarge,
fontWeight = FontWeight.Bold,
modifier = Modifier.weight(1f), modifier = Modifier.weight(1f),
) )
if (onMore != null) { if (onMore != null) {
@@ -270,7 +272,7 @@ private val TILE_SIZE = 132.dp
private val ARTIST_TILE_SIZE = 104.dp private val ARTIST_TILE_SIZE = 104.dp
private val TILE_SPACING = 8.dp private val TILE_SPACING = 8.dp
private val ARTIST_SPACING = 16.dp private val ARTIST_SPACING = 16.dp
private val SECTION_CONTENT_TOP = 12.dp private val SECTION_CONTENT_TOP = 8.dp
private const val GENRE_ROWS = 3 private const val GENRE_ROWS = 3
private fun LazyListScope.albumRow( private fun LazyListScope.albumRow(