fix: fixed typography

This commit is contained in:
danilkinkin 2024-04-30 00:24:51 +09:00
parent f0847a7220
commit f1c4869ed1
2 changed files with 3 additions and 2 deletions

View file

@ -57,8 +57,9 @@ fun SpendsCountCard(
) {
Text(
text = count.toString(),
style = MaterialTheme.typography.displayLarge,
style = MaterialTheme.typography.displayMedium,
fontSize = MaterialTheme.typography.titleLarge.fontSize,
overflow = TextOverflow.Ellipsis,
softWrap = true,
textAlign = TextAlign.Center,

View file

@ -21,7 +21,7 @@ fun StatCard(
contentPadding: PaddingValues = PaddingValues(vertical = 16.dp, horizontal = 24.dp),
colors: CardColors = CardDefaults.cardColors(),
valueFontSize: TextUnit = MaterialTheme.typography.titleLarge.fontSize,
valueFontStyle: TextStyle = MaterialTheme.typography.displayLarge,
valueFontStyle: TextStyle = MaterialTheme.typography.displayMedium,
labelFontStyle: TextStyle = MaterialTheme.typography.labelMedium,
content: @Composable ColumnScope.() -> Unit = {},
backdropContent: @Composable () -> Unit = {},