fix: issue in which listitem and listheader backgrounds were inconsistent
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
1f1aebbd63
commit
ad84742684
|
|
@ -20,7 +20,7 @@ import androidx.compose.ui.unit.dp
|
||||||
@Composable
|
@Composable
|
||||||
fun ListHeader(
|
fun ListHeader(
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
backgroundColor: Color = MaterialTheme.colorScheme.background,
|
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 = MaterialTheme.colorScheme.background
|
backgroundColor: Color = MaterialTheme.colorScheme.surface
|
||||||
) {
|
) {
|
||||||
ListHeader(backgroundColor = backgroundColor) {
|
ListHeader(backgroundColor = backgroundColor) {
|
||||||
Text(
|
Text(
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ val RevoltColorScheme = darkColorScheme(
|
||||||
onBackground = Color(0xffffffff),
|
onBackground = Color(0xffffffff),
|
||||||
surfaceVariant = Color(0xff242424),
|
surfaceVariant = Color(0xff242424),
|
||||||
onSurfaceVariant = Color(0xffffffff),
|
onSurfaceVariant = Color(0xffffffff),
|
||||||
surface = Color(0xff1e1e1e),
|
surface = Color(0xff191919),
|
||||||
onSurface = Color(0xffffffff),
|
onSurface = Color(0xffffffff),
|
||||||
surfaceTint = Color(0xFFC0C0C0),
|
surfaceTint = Color(0xFFC0C0C0),
|
||||||
)
|
)
|
||||||
|
|
@ -47,7 +47,7 @@ val AmoledColorScheme = RevoltColorScheme.copy(
|
||||||
onBackground = Color(0xffffffff),
|
onBackground = Color(0xffffffff),
|
||||||
surfaceVariant = Color(0xff131313),
|
surfaceVariant = Color(0xff131313),
|
||||||
onSurfaceVariant = Color(0xffffffff),
|
onSurfaceVariant = Color(0xffffffff),
|
||||||
surface = Color(0xff212121),
|
surface = Color(0xff000000),
|
||||||
onSurface = Color(0xffffffff)
|
onSurface = Color(0xffffffff)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@ val LightColorScheme = lightColorScheme(
|
||||||
onBackground = Color(0xff000000),
|
onBackground = Color(0xff000000),
|
||||||
surfaceVariant = Color(0xffe0e0e0),
|
surfaceVariant = Color(0xffe0e0e0),
|
||||||
onSurfaceVariant = Color(0xff000000),
|
onSurfaceVariant = Color(0xff000000),
|
||||||
surface = Color(0xfff5f5f5),
|
surface = Color(0xffffffff),
|
||||||
onSurface = Color(0xff000000),
|
onSurface = Color(0xff000000),
|
||||||
surfaceTint = Color(0xff5658b9)
|
surfaceTint = Color(0xff5658b9)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue