mirror of
https://github.com/bitwarden/android.git
synced 2024-11-24 02:15:53 +03:00
Add sensitiveInfoSmall/sensitiveInfoMedium fonts (#423)
This commit is contained in:
parent
21f51c90ad
commit
c4d4c1d76b
2 changed files with 16 additions and 3 deletions
|
@ -326,7 +326,7 @@ private fun FingerPrintPhraseDialog(
|
|||
Text(
|
||||
text = fingerprintPhrase(),
|
||||
color = LocalNonMaterialColors.current.fingerprint,
|
||||
style = LocalNonMaterialTypography.current.fingerprint,
|
||||
style = LocalNonMaterialTypography.current.sensitiveInfoSmall,
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
)
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ val Typography: Typography = Typography(
|
|||
)
|
||||
|
||||
val nonMaterialTypography: NonMaterialTypography = NonMaterialTypography(
|
||||
fingerprint = TextStyle(
|
||||
sensitiveInfoSmall = TextStyle(
|
||||
fontSize = 14.sp,
|
||||
lineHeight = 20.sp,
|
||||
fontFamily = FontFamily(Font(R.font.roboto_regular_mono)),
|
||||
|
@ -206,6 +206,18 @@ val nonMaterialTypography: NonMaterialTypography = NonMaterialTypography(
|
|||
),
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
),
|
||||
sensitiveInfoMedium = TextStyle(
|
||||
fontSize = 16.sp,
|
||||
lineHeight = 24.sp,
|
||||
fontFamily = FontFamily(Font(R.font.roboto_regular_mono)),
|
||||
fontWeight = FontWeight.W400,
|
||||
letterSpacing = 0.5.sp,
|
||||
lineHeightStyle = LineHeightStyle(
|
||||
alignment = LineHeightStyle.Alignment.Center,
|
||||
trim = LineHeightStyle.Trim.None,
|
||||
),
|
||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
||||
),
|
||||
labelMediumProminent = TextStyle(
|
||||
fontSize = 12.sp,
|
||||
lineHeight = 16.sp,
|
||||
|
@ -224,6 +236,7 @@ val nonMaterialTypography: NonMaterialTypography = NonMaterialTypography(
|
|||
* Models typography that live outside of the Material Theme spec.
|
||||
*/
|
||||
data class NonMaterialTypography(
|
||||
val fingerprint: TextStyle,
|
||||
val labelMediumProminent: TextStyle,
|
||||
val sensitiveInfoSmall: TextStyle,
|
||||
val sensitiveInfoMedium: TextStyle,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue