TodoTheme: wire in customized elements

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-09-08 05:35:26 +05:30
parent 57d6855c78
commit b7124e5bda
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -48,7 +48,8 @@ private val typography = Typography(
@Composable
fun TodoTheme(children: @Composable () -> Unit) {
MaterialTheme(
colors = if (isSystemInDarkTheme()) darkColors() else lightColors(),
colors = if (isSystemInDarkTheme()) darkColors else lightColors,
content = children,
typography = typography,
)
}