mirror of
https://github.com/bitwarden/android.git
synced 2025-02-17 12:30:00 +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(
|
||||||
text = fingerprintPhrase(),
|
text = fingerprintPhrase(),
|
||||||
color = LocalNonMaterialColors.current.fingerprint,
|
color = LocalNonMaterialColors.current.fingerprint,
|
||||||
style = LocalNonMaterialTypography.current.fingerprint,
|
style = LocalNonMaterialTypography.current.sensitiveInfoSmall,
|
||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -194,7 +194,7 @@ val Typography: Typography = Typography(
|
||||||
)
|
)
|
||||||
|
|
||||||
val nonMaterialTypography: NonMaterialTypography = NonMaterialTypography(
|
val nonMaterialTypography: NonMaterialTypography = NonMaterialTypography(
|
||||||
fingerprint = TextStyle(
|
sensitiveInfoSmall = TextStyle(
|
||||||
fontSize = 14.sp,
|
fontSize = 14.sp,
|
||||||
lineHeight = 20.sp,
|
lineHeight = 20.sp,
|
||||||
fontFamily = FontFamily(Font(R.font.roboto_regular_mono)),
|
fontFamily = FontFamily(Font(R.font.roboto_regular_mono)),
|
||||||
|
@ -206,6 +206,18 @@ val nonMaterialTypography: NonMaterialTypography = NonMaterialTypography(
|
||||||
),
|
),
|
||||||
platformStyle = PlatformTextStyle(includeFontPadding = false),
|
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(
|
labelMediumProminent = TextStyle(
|
||||||
fontSize = 12.sp,
|
fontSize = 12.sp,
|
||||||
lineHeight = 16.sp,
|
lineHeight = 16.sp,
|
||||||
|
@ -224,6 +236,7 @@ val nonMaterialTypography: NonMaterialTypography = NonMaterialTypography(
|
||||||
* Models typography that live outside of the Material Theme spec.
|
* Models typography that live outside of the Material Theme spec.
|
||||||
*/
|
*/
|
||||||
data class NonMaterialTypography(
|
data class NonMaterialTypography(
|
||||||
val fingerprint: TextStyle,
|
|
||||||
val labelMediumProminent: TextStyle,
|
val labelMediumProminent: TextStyle,
|
||||||
|
val sensitiveInfoSmall: TextStyle,
|
||||||
|
val sensitiveInfoMedium: TextStyle,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue