fix: return default background for ListHeader
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
71a4d864e5
commit
7b77daebee
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue