fix: return default background for ListHeader

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-10-26 03:31:23 +02:00
parent 71a4d864e5
commit 7b77daebee
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import androidx.compose.ui.unit.dp
@Composable
fun ListHeader(
modifier: Modifier = Modifier,
backgroundColor: Color = Color.Transparent,
backgroundColor: Color = MaterialTheme.colorScheme.surface,
content: @Composable () -> Unit,
) {
CompositionLocalProvider(LocalTextStyle provides MaterialTheme.typography.labelLarge) {
@ -39,7 +39,7 @@ fun ListHeader(
fun CountableListHeader(
text: String,
count: Int,
backgroundColor: Color = Color.Transparent
backgroundColor: Color = MaterialTheme.colorScheme.surface
) {
ListHeader(backgroundColor = backgroundColor) {
Text(