fix: fixed font size

This commit is contained in:
danilkinkin 2024-03-05 23:44:20 +05:00
parent cb5256360e
commit 9c850d5705
4 changed files with 9 additions and 6 deletions

View file

@ -194,7 +194,8 @@ fun RestAndSpentBudgetCard(
R.string.rest_budget_percent,
percentFormatted
),
style = if (bigVariant) MaterialTheme.typography.bodySmall else MaterialTheme.typography.bodyMedium,
style = MaterialTheme.typography.bodyMedium,
fontSize = if (bigVariant) MaterialTheme.typography.labelMedium.fontSize else MaterialTheme.typography.labelSmall.fontSize,
)
}
}

View file

@ -69,7 +69,8 @@ fun WholeBudgetCard(
),
softWrap = false,
overflow = TextOverflow.Ellipsis,
style = if (bigVariant) MaterialTheme.typography.bodyMedium else MaterialTheme.typography.bodySmall,
style = MaterialTheme.typography.bodyMedium,
fontSize = if (bigVariant) MaterialTheme.typography.bodySmall.fontSize else MaterialTheme.typography.labelSmall.fontSize,
)
}
@ -122,7 +123,8 @@ fun WholeBudgetCard(
},
softWrap = false,
overflow = TextOverflow.Ellipsis,
style = if (bigVariant) MaterialTheme.typography.bodyMedium else MaterialTheme.typography.bodySmall,
style = MaterialTheme.typography.bodyMedium,
fontSize = if (bigVariant) MaterialTheme.typography.bodySmall.fontSize else MaterialTheme.typography.labelSmall.fontSize,
)
}
},

View file

@ -38,7 +38,7 @@ fun SpentItem(
Text(
text = numberFormat(context = context, transaction.value, currency = currency),
style = MaterialTheme.typography.headlineMedium,
fontSize = MaterialTheme.typography.headlineLarge.fontSize,
fontSize = MaterialTheme.typography.headlineMedium.fontSize,
color = colorOnEditor,
softWrap = false,
overflow = TextOverflow.Ellipsis,

View file

@ -27,7 +27,7 @@ fun typography(context: Context): Typography {
return Typography(
displayLarge = TextStyle(
fontFamily = getFont(700),
fontFamily = getFont(650),
fontSize = 57.sp
),
displayMedium = TextStyle(
@ -35,7 +35,7 @@ fun typography(context: Context): Typography {
fontSize = 45.sp
),
displaySmall = TextStyle(
fontFamily = getFont(650),
fontFamily = getFont(600),
fontSize = 22.sp
),
headlineLarge = TextStyle(