Minor cleanup

This commit is contained in:
arkon
2022-04-24 14:39:51 -04:00
parent 29a0989f28
commit 0ec9496d26
9 changed files with 31 additions and 43 deletions

View File

@@ -10,12 +10,12 @@ fun TachiyomiTheme(content: @Composable () -> Unit) {
val context = LocalContext.current
val (colorScheme, typography) = createMdc3Theme(
context = context,
setTextColors = true
setTextColors = true,
)
MaterialTheme(
colorScheme = colorScheme!!,
typography = typography!!,
content = content
content = content,
)
}

View File

@@ -8,9 +8,7 @@ import androidx.compose.ui.text.font.FontWeight
val Typography.header: TextStyle
@Composable
get() {
return bodyMedium.copy(
color = MaterialTheme.colorScheme.onSurfaceVariant,
fontWeight = FontWeight.SemiBold
)
}
get() = bodyMedium.copy(
color = MaterialTheme.colorScheme.onSurfaceVariant,
fontWeight = FontWeight.SemiBold,
)