fix: issue in which listitem and listheader backgrounds were inconsistent

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-01-21 19:08:08 +01:00
parent 1f1aebbd63
commit ad84742684
2 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ import androidx.compose.ui.unit.dp
@Composable
fun ListHeader(
modifier: Modifier = Modifier,
backgroundColor: Color = MaterialTheme.colorScheme.background,
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 = MaterialTheme.colorScheme.background
backgroundColor: Color = MaterialTheme.colorScheme.surface
) {
ListHeader(backgroundColor = backgroundColor) {
Text(

View File

@ -37,7 +37,7 @@ val RevoltColorScheme = darkColorScheme(
onBackground = Color(0xffffffff),
surfaceVariant = Color(0xff242424),
onSurfaceVariant = Color(0xffffffff),
surface = Color(0xff1e1e1e),
surface = Color(0xff191919),
onSurface = Color(0xffffffff),
surfaceTint = Color(0xFFC0C0C0),
)
@ -47,7 +47,7 @@ val AmoledColorScheme = RevoltColorScheme.copy(
onBackground = Color(0xffffffff),
surfaceVariant = Color(0xff131313),
onSurfaceVariant = Color(0xffffffff),
surface = Color(0xff212121),
surface = Color(0xff000000),
onSurface = Color(0xffffffff)
)
@ -68,7 +68,7 @@ val LightColorScheme = lightColorScheme(
onBackground = Color(0xff000000),
surfaceVariant = Color(0xffe0e0e0),
onSurfaceVariant = Color(0xff000000),
surface = Color(0xfff5f5f5),
surface = Color(0xffffffff),
onSurface = Color(0xff000000),
surfaceTint = Color(0xff5658b9)
)