From 6ffb71e6a19a4c1b525391fb0b2591ffeda4727e Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 6 Jun 2024 11:28:11 +0930 Subject: [PATCH] Center seed on Recovery Activity --- .../onboarding/recoverypassword/RecoveryPasswordActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt index d66700d869..95efe84747 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/onboarding/recoverypassword/RecoveryPasswordActivity.kt @@ -26,6 +26,7 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.platform.ComposeView import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.tooling.preview.PreviewParameter import androidx.compose.ui.unit.dp @@ -150,6 +151,7 @@ fun RecoveryPasswordCell(seed: String, copySeed:() -> Unit = {}) { shape = RoundedCornerShape(11.dp) ) .padding(24.dp), + textAlign = TextAlign.Center, style = MaterialTheme.typography.small.copy(fontFamily = FontFamily.Monospace), color = MaterialTheme.colors.run { if (isLight) onSurface else secondary }, )