Loading packages/CredentialManager/src/com/android/credentialmanager/common/ui/Texts.kt +11 −10 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextLayoutResult import androidx.compose.ui.text.style.Hyphens import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextOverflow import com.android.compose.theme.LocalAndroidColorScheme Loading @@ -39,7 +40,7 @@ fun HeadlineText(text: String, modifier: Modifier = Modifier) { text = text, color = LocalAndroidColorScheme.current.onSurface, textAlign = TextAlign.Center, style = MaterialTheme.typography.headlineSmall, style = MaterialTheme.typography.headlineSmall.copy(hyphens = Hyphens.Auto), ) } Loading @@ -52,7 +53,7 @@ fun BodyMediumText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurfaceVariant, style = MaterialTheme.typography.bodyMedium, style = MaterialTheme.typography.bodyMedium.copy(hyphens = Hyphens.Auto), ) } Loading @@ -70,7 +71,7 @@ fun BodySmallText( modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurfaceVariant, style = MaterialTheme.typography.bodySmall, style = MaterialTheme.typography.bodySmall.copy(hyphens = Hyphens.Auto), overflow = TextOverflow.Ellipsis, maxLines = if (enforceOneLine) 1 else Int.MAX_VALUE, onTextLayout = onTextLayout, Loading @@ -86,7 +87,7 @@ fun LargeTitleText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurface, style = MaterialTheme.typography.titleLarge, style = MaterialTheme.typography.titleLarge.copy(hyphens = Hyphens.Auto), ) } Loading @@ -104,7 +105,7 @@ fun SmallTitleText( modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurface, style = MaterialTheme.typography.titleSmall, style = MaterialTheme.typography.titleSmall.copy(hyphens = Hyphens.Auto), overflow = TextOverflow.Ellipsis, maxLines = if (enforceOneLine) 1 else Int.MAX_VALUE, onTextLayout = onTextLayout, Loading @@ -120,7 +121,7 @@ fun SectionHeaderText(text: String, modifier: Modifier = Modifier, color: Color) modifier = modifier.wrapContentSize(), text = text, color = color, style = MaterialTheme.typography.titleSmall, style = MaterialTheme.typography.titleSmall.copy(hyphens = Hyphens.Auto), ) } Loading @@ -133,7 +134,7 @@ fun SnackbarContentText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = MaterialTheme.colorScheme.inverseOnSurface, style = MaterialTheme.typography.bodyMedium, style = MaterialTheme.typography.bodyMedium.copy(hyphens = Hyphens.Auto), ) } Loading @@ -146,7 +147,7 @@ fun SnackbarActionText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = MaterialTheme.colorScheme.inversePrimary, style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge.copy(hyphens = Hyphens.Auto), ) } Loading @@ -160,7 +161,7 @@ fun LargeLabelTextOnSurfaceVariant(text: String, modifier: Modifier = Modifier) text = text, textAlign = TextAlign.Center, color = LocalAndroidColorScheme.current.onSurfaceVariant, style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge.copy(hyphens = Hyphens.Auto), ) } Loading @@ -173,6 +174,6 @@ fun LargeLabelText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, textAlign = TextAlign.Center, style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge.copy(hyphens = Hyphens.Auto), ) } No newline at end of file Loading
packages/CredentialManager/src/com/android/credentialmanager/common/ui/Texts.kt +11 −10 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextLayoutResult import androidx.compose.ui.text.style.Hyphens import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextOverflow import com.android.compose.theme.LocalAndroidColorScheme Loading @@ -39,7 +40,7 @@ fun HeadlineText(text: String, modifier: Modifier = Modifier) { text = text, color = LocalAndroidColorScheme.current.onSurface, textAlign = TextAlign.Center, style = MaterialTheme.typography.headlineSmall, style = MaterialTheme.typography.headlineSmall.copy(hyphens = Hyphens.Auto), ) } Loading @@ -52,7 +53,7 @@ fun BodyMediumText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurfaceVariant, style = MaterialTheme.typography.bodyMedium, style = MaterialTheme.typography.bodyMedium.copy(hyphens = Hyphens.Auto), ) } Loading @@ -70,7 +71,7 @@ fun BodySmallText( modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurfaceVariant, style = MaterialTheme.typography.bodySmall, style = MaterialTheme.typography.bodySmall.copy(hyphens = Hyphens.Auto), overflow = TextOverflow.Ellipsis, maxLines = if (enforceOneLine) 1 else Int.MAX_VALUE, onTextLayout = onTextLayout, Loading @@ -86,7 +87,7 @@ fun LargeTitleText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurface, style = MaterialTheme.typography.titleLarge, style = MaterialTheme.typography.titleLarge.copy(hyphens = Hyphens.Auto), ) } Loading @@ -104,7 +105,7 @@ fun SmallTitleText( modifier = modifier.wrapContentSize(), text = text, color = LocalAndroidColorScheme.current.onSurface, style = MaterialTheme.typography.titleSmall, style = MaterialTheme.typography.titleSmall.copy(hyphens = Hyphens.Auto), overflow = TextOverflow.Ellipsis, maxLines = if (enforceOneLine) 1 else Int.MAX_VALUE, onTextLayout = onTextLayout, Loading @@ -120,7 +121,7 @@ fun SectionHeaderText(text: String, modifier: Modifier = Modifier, color: Color) modifier = modifier.wrapContentSize(), text = text, color = color, style = MaterialTheme.typography.titleSmall, style = MaterialTheme.typography.titleSmall.copy(hyphens = Hyphens.Auto), ) } Loading @@ -133,7 +134,7 @@ fun SnackbarContentText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = MaterialTheme.colorScheme.inverseOnSurface, style = MaterialTheme.typography.bodyMedium, style = MaterialTheme.typography.bodyMedium.copy(hyphens = Hyphens.Auto), ) } Loading @@ -146,7 +147,7 @@ fun SnackbarActionText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, color = MaterialTheme.colorScheme.inversePrimary, style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge.copy(hyphens = Hyphens.Auto), ) } Loading @@ -160,7 +161,7 @@ fun LargeLabelTextOnSurfaceVariant(text: String, modifier: Modifier = Modifier) text = text, textAlign = TextAlign.Center, color = LocalAndroidColorScheme.current.onSurfaceVariant, style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge.copy(hyphens = Hyphens.Auto), ) } Loading @@ -173,6 +174,6 @@ fun LargeLabelText(text: String, modifier: Modifier = Modifier) { modifier = modifier.wrapContentSize(), text = text, textAlign = TextAlign.Center, style = MaterialTheme.typography.labelLarge, style = MaterialTheme.typography.labelLarge.copy(hyphens = Hyphens.Auto), ) } No newline at end of file