Fix TextButtons being displayed in black.

Set the default `LocalContentColor` to `onSurface`.
This commit is contained in:
Jorge Martín 2023-08-18 08:02:08 +02:00
parent ffb9855768
commit 1c0f773d78

View file

@ -19,6 +19,7 @@ package io.element.android.libraries.theme
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Typography
import androidx.compose.material3.dynamicDarkColorScheme
@ -115,6 +116,7 @@ fun ElementTheme(
}
CompositionLocalProvider(
LocalCompoundColors provides currentCompoundColor,
LocalContentColor provides colorScheme.onSurface,
) {
MaterialTheme(
colorScheme = colorScheme,