Fix TextButtons being displayed in black.
Set the default `LocalContentColor` to `onSurface`.
This commit is contained in:
parent
ffb9855768
commit
1c0f773d78
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue