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
|
@Composable
|
||||||
fun ListHeader(
|
fun ListHeader(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
backgroundColor: Color = Color.Transparent,
|
backgroundColor: Color = MaterialTheme.colorScheme.surface,
|
||||||
content: @Composable () -> Unit,
|
content: @Composable () -> Unit,
|
||||||
) {
|
) {
|
||||||
CompositionLocalProvider(LocalTextStyle provides MaterialTheme.typography.labelLarge) {
|
CompositionLocalProvider(LocalTextStyle provides MaterialTheme.typography.labelLarge) {
|
||||||
|
|
@ -39,7 +39,7 @@ fun ListHeader(
|
||||||
fun CountableListHeader(
|
fun CountableListHeader(
|
||||||
text: String,
|
text: String,
|
||||||
count: Int,
|
count: Int,
|
||||||
backgroundColor: Color = Color.Transparent
|
backgroundColor: Color = MaterialTheme.colorScheme.surface
|
||||||
) {
|
) {
|
||||||
ListHeader(backgroundColor = backgroundColor) {
|
ListHeader(backgroundColor = backgroundColor) {
|
||||||
Text(
|
Text(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue