517753d518ee

migrate ui/codex, ui/lock, ui/onboarding, ui/pairing, ui/recovery call sites to peachColors

time
2026-06-09 13:38 UTC · 5 months ago
machine
koh2
agent
claude-opus-4-8
session
light theme palette migration
parent
7d04b4536bc7
7 files app/src/main/java/com/peachpasswords/ui/codex/CodexGenerateScreen.kt+19 −19app/src/main/java/com/peachpasswords/ui/codex/CodexRestoreChooseAndCamera.kt+12 −12app/src/main/java/com/peachpasswords/ui/codex/CodexRestoreScreen.kt+10 −10app/src/main/java/com/peachpasswords/ui/lock/LockScreen.kt+14 −13app/src/main/java/com/peachpasswords/ui/onboarding/OnboardingScreen.kt+13 −13app/src/main/java/com/peachpasswords/ui/pairing/ChirpPairScreen.kt+14 −14app/src/main/java/com/peachpasswords/ui/recovery/RecoveryWordEntryScreen.kt+20 −18
app/src/main/java/com/peachpasswords/ui/codex/CodexGenerateScreen.kt+19 −19
@@ -36,7 +36,7 @@3636 import androidx.lifecycle.compose.collectAsStateWithLifecycle3737 import com.peachpasswords.codex.CodexStep3838 import com.peachpasswords.ui.theme.LocalPeachAccent39-import com.peachpasswords.ui.theme.PeachColors39+import com.peachpasswords.ui.theme.peachColors4040 import com.peachpasswords.ui.theme.PeachType4141 import com.peachpasswords.ui.theme.ShellBackground4242 @@ -58,18 +58,18 @@5858             Spacer(Modifier.height(8.dp))5959             Text(6060                 "A printable PDF of Aztec codes that encodes your encrypted vault. Keep it with your recovery words — together they restore everything, even offline.",61-                color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp,61+                color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp,6262             )6363             Spacer(Modifier.height(28.dp))6464 6565             when (val s = state) {6666                 is GenerateState.Idle -> {6767                     if (!vm.recoveryWordsSet) {68-                        Text("Set up recovery words first", color = PeachColors.T1, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)68+                        Text("Set up recovery words first", color = peachColors.T1, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)6969                         Spacer(Modifier.height(6.dp))7070                         Text(7171                             "A Codex backup only restores alongside your recovery words. Set them up before generating one.",72-                            color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp,72+                            color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp,7373                         )7474                         Spacer(Modifier.height(20.dp))7575                         CodexButton("Set up recovery words", accent, filled = true, onClick = onSetupRecovery)@@ -78,9 +78,9 @@7878                         var w7 by remember { mutableStateOf("") }7979                         var w11 by remember { mutableStateOf("") }8080                         val ok = vm.gateMatches(w3, w7, w11)81-                        Text("Confirm your recovery words", color = PeachColors.T1, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)81+                        Text("Confirm your recovery words", color = peachColors.T1, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)8282                         Spacer(Modifier.height(6.dp))83-                        Text("Enter the words at positions 3, 7, and 11.", color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp)83+                        Text("Enter the words at positions 3, 7, and 11.", color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp)8484                         Spacer(Modifier.height(16.dp))8585                         GateField("Word #3", w3, accent) { w3 = it }8686                         GateField("Word #7", w7, accent) { w7 = it }@@ -88,24 +88,24 @@8888                         Spacer(Modifier.height(20.dp))8989                         CodexButton(9090                             "Generate Codex PDF",91-                            if (ok) accent else PeachColors.T2,91+                            if (ok) accent else peachColors.T2,9292                             filled = ok,9393                         ) { if (ok) vm.startGenerate(System.currentTimeMillis()) }9494                     }9595                 }9696 9797                 is GenerateState.Running -> Column {98-                    Text(stepLabel(s.step), color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 11.sp)98+                    Text(stepLabel(s.step), color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 11.sp)9999                     Spacer(Modifier.height(10.dp))100100                     val frac = if (s.total > 0) s.current.toFloat() / s.total else 0f101101                     LinearProgressIndicator(102102                         progress = { if (s.step == CodexStep.AZTEC) frac else 0.5f },103103                         modifier = Modifier.fillMaxWidth().height(4.dp),104-                        color = accent, trackColor = PeachColors.S2,104+                        color = accent, trackColor = peachColors.S2,105105                     )106106                     if (s.step == CodexStep.AZTEC) {107107                         Spacer(Modifier.height(6.dp))108-                        Text("${s.current} / ${s.total} codes", color = PeachColors.T3, fontFamily = PeachType.Mono, fontSize = 9.sp)108+                        Text("${s.current} / ${s.total} codes", color = peachColors.T3, fontFamily = PeachType.Mono, fontSize = 9.sp)109109                     }110110                 }111111 @@ -117,13 +117,13 @@117117                     Spacer(Modifier.height(24.dp))118118                     CodexButton("Save PDF…", accent, filled = true) { saveLauncher.launch("peach-codex.pdf") }119119                     Spacer(Modifier.height(10.dp))120-                    CodexButton("Generate again", PeachColors.T2, filled = false) { vm.startGenerate(System.currentTimeMillis()) }120+                    CodexButton("Generate again", peachColors.T2, filled = false) { vm.startGenerate(System.currentTimeMillis()) }121121                 }122122 123123                 is GenerateState.Error -> Column {124-                    Text("Couldn't generate", color = PeachColors.Breach, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)124+                    Text("Couldn't generate", color = peachColors.Breach, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)125125                     Spacer(Modifier.height(6.dp))126-                    Text(s.message, color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp)126+                    Text(s.message, color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp)127127                     Spacer(Modifier.height(20.dp))128128                     CodexButton("Try again", accent, filled = true) { vm.startGenerate(System.currentTimeMillis()) }129129                 }@@ -146,17 +146,17 @@146146         modifier = Modifier.fillMaxWidth().padding(top = 12.dp).height(48.dp),147147         verticalAlignment = Alignment.CenterVertically,148148     ) {149-        Text("‹", color = PeachColors.T1, fontSize = 26.sp,149+        Text("‹", color = peachColors.T1, fontSize = 26.sp,150150             modifier = Modifier.clip(CircleShape).clickable(onClick = onBack).padding(horizontal = 8.dp))151151         Spacer(Modifier.size(8.dp))152-        Text(title, color = PeachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)152+        Text(title, color = peachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)153153     }154154 }155155 156156 @Composable157157 private fun SummaryRow(label: String, value: String, accent: Color) {158158     Row(Modifier.fillMaxWidth().padding(vertical = 7.dp), horizontalArrangement = Arrangement.SpaceBetween) {159-        Text(label, color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)159+        Text(label, color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)160160         Text(value, color = accent, fontFamily = PeachType.Mono, fontSize = 12.sp)161161     }162162 }@@ -164,16 +164,16 @@164164 @Composable165165 private fun GateField(label: String, value: String, accent: Color, onChange: (String) -> Unit) {166166     Column(Modifier.fillMaxWidth().padding(vertical = 6.dp)) {167-        Text(label, color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)167+        Text(label, color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)168168         BasicTextField(169169             value = value,170170             onValueChange = { onChange(it) },171171             singleLine = true,172-            textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),172+            textStyle = PeachType.bodyMono.copy(color = peachColors.T0),173173             cursorBrush = SolidColor(accent),174174             modifier = Modifier.fillMaxWidth().padding(top = 4.dp),175175         )176-        Box(Modifier.fillMaxWidth().padding(top = 4.dp).height(1.dp).background(PeachColors.T3))176+        Box(Modifier.fillMaxWidth().padding(top = 4.dp).height(1.dp).background(peachColors.T3))177177     }178178 }179179 

view file

app/src/main/java/com/peachpasswords/ui/codex/CodexRestoreChooseAndCamera.kt+12 −12
@@ -68,7 +68,7 @@6868 import androidx.compose.ui.viewinterop.AndroidView6969 import androidx.core.content.ContextCompat7070 import androidx.lifecycle.compose.LocalLifecycleOwner71-import com.peachpasswords.ui.theme.PeachColors71+import com.peachpasswords.ui.theme.peachColors7272 import com.peachpasswords.ui.theme.PeachType7373 import java.util.concurrent.Executors7474 @@ -96,7 +96,7 @@9696         )9797         ChooseCard(9898             icon = Icons.Outlined.Description,99-            iconTint = PeachColors.T2,99+            iconTint = peachColors.T2,100100             title = "Import PDF",101101             body = "Import the PDF you saved when generating your Codex",102102             accent = accent,@@ -118,8 +118,8 @@118118         Modifier119119             .fillMaxWidth()120120             .clip(RoundedCornerShape(18.dp))121-            .background(PeachColors.SurfaceElevated)122-            .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))121+            .background(peachColors.SurfaceElevated)122+            .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))123123             .clickable(onClick = onClick)124124             .padding(horizontal = 18.dp, vertical = 18.dp),125125         verticalAlignment = Alignment.CenterVertically,@@ -129,13 +129,13 @@129129         Column(Modifier.fillMaxWidth()) {130130             Text(131131                 title,132-                color = PeachColors.T0,132+                color = peachColors.T0,133133                 fontFamily = PeachType.Display,134134                 fontStyle = FontStyle.Italic,135135                 fontSize = 19.sp,136136             )137137             Spacer(Modifier.height(4.dp))138-            Text(body, color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)138+            Text(body, color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)139139         }140140     }141141 }@@ -297,7 +297,7 @@297297     ) {298298         Text(299299             "No Aztec codes detected — try better lighting",300-            color = PeachColors.T1,300+            color = peachColors.T1,301301             fontFamily = PeachType.Mono,302302             fontSize = 11.sp,303303         )@@ -321,21 +321,21 @@321321         Modifier322322             .fillMaxWidth()323323             .clip(RoundedCornerShape(18.dp))324-            .background(PeachColors.SurfaceElevated)325-            .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))324+            .background(peachColors.SurfaceElevated)325+            .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))326326             .padding(20.dp),327327         horizontalAlignment = Alignment.CenterHorizontally,328328     ) {329329         Icon(330330             Icons.Outlined.NoPhotography,331331             contentDescription = null,332-            tint = PeachColors.T2,332+            tint = peachColors.T2,333333             modifier = Modifier.height(24.dp),334334         )335335         Spacer(Modifier.height(12.dp))336336         Text(337337             "Camera access needed",338-            color = PeachColors.T0,338+            color = peachColors.T0,339339             fontFamily = PeachType.Display,340340             fontStyle = FontStyle.Italic,341341             fontSize = 19.sp,@@ -343,7 +343,7 @@343343         Spacer(Modifier.height(6.dp))344344         Text(345345             "Grant camera permission in Settings to scan your Codex",346-            color = PeachColors.T2,346+            color = peachColors.T2,347347             fontFamily = PeachType.Mono,348348             fontSize = 10.sp,349349         )

view file

app/src/main/java/com/peachpasswords/ui/codex/CodexRestoreScreen.kt+10 −10
@@ -27,7 +27,7 @@2727 import androidx.hilt.navigation.compose.hiltViewModel2828 import androidx.lifecycle.compose.collectAsStateWithLifecycle2929 import com.peachpasswords.ui.theme.LocalPeachAccent30-import com.peachpasswords.ui.theme.PeachColors30+import com.peachpasswords.ui.theme.peachColors3131 import com.peachpasswords.ui.theme.PeachType3232 import com.peachpasswords.ui.theme.ShellBackground3333 @@ -46,7 +46,7 @@4646             Spacer(Modifier.height(8.dp))4747             Text(4848                 "Choose a Codex PDF. Peach reads its Aztec codes — even if some pages are missing or smudged — and rebuilds your encrypted vault. You'll need the master password.",49-                color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp,49+                color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp,5050             )5151             Spacer(Modifier.height(28.dp))5252 @@ -77,21 +77,21 @@7777 7878                 is RestoreState.Scanning -> Text(7979                     if (s.pages == 0) "Reading…" else "Reading page ${s.page} of ${s.pages}…",80-                    color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 12.sp,80+                    color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 12.sp,8181                 )8282 8383                 is RestoreState.Decoded -> DecodedBody(s, accent, vm, onRestored)8484 8585                 is RestoreState.Restoring ->86-                    Text("Restoring vault…", color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 12.sp)86+                    Text("Restoring vault…", color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 12.sp)8787 8888                 is RestoreState.Restored ->8989                     Text("Vault restored.", color = accent, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp)9090 9191                 is RestoreState.Error -> Column {92-                    Text("Couldn't restore", color = PeachColors.Breach, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)92+                    Text("Couldn't restore", color = peachColors.Breach, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)9393                     Spacer(Modifier.height(6.dp))94-                    Text(s.message, color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp)94+                    Text(s.message, color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp)9595                     Spacer(Modifier.height(20.dp))9696                     CodexButton("Choose another file", accent, filled = true) { vm.resetRestore(); pickLauncher.launch("application/pdf") }9797                 }@@ -105,22 +105,22 @@105105     var password by remember { mutableStateOf("") }106106     Column {107107         Row(Modifier.fillMaxWidth().padding(vertical = 7.dp), horizontalArrangement = Arrangement.SpaceBetween) {108-            Text("verify code", color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)108+            Text("verify code", color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)109109             Text(s.payload.verifyCode, color = accent, fontFamily = PeachType.Mono, fontSize = 12.sp)110110         }111111         Row(Modifier.fillMaxWidth().padding(vertical = 7.dp), horizontalArrangement = Arrangement.SpaceBetween) {112-            Text("entries", color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)112+            Text("entries", color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)113113             Text(s.payload.entryCount.toString(), color = accent, fontFamily = PeachType.Mono, fontSize = 12.sp)114114         }115115         Row(Modifier.fillMaxWidth().padding(vertical = 7.dp), horizontalArrangement = Arrangement.SpaceBetween) {116-            Text("codes read", color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)116+            Text("codes read", color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp)117117             Text(s.codesFound.toString(), color = accent, fontFamily = PeachType.Mono, fontSize = 12.sp)118118         }119119         Spacer(Modifier.height(20.dp))120120         OutlinedTextField(121121             value = password,122122             onValueChange = { password = it },123-            placeholder = { Text("master password", color = PeachColors.T3, fontFamily = PeachType.Mono, fontSize = 13.sp) },123+            placeholder = { Text("master password", color = peachColors.T3, fontFamily = PeachType.Mono, fontSize = 13.sp) },124124             visualTransformation = PasswordVisualTransformation(),125125             keyboardOptions = KeyboardOptions(keyboardType = androidx.compose.ui.text.input.KeyboardType.Password),126126             singleLine = true,

view file

app/src/main/java/com/peachpasswords/ui/lock/LockScreen.kt+14 −13
@@ -55,7 +55,7 @@5555 import com.peachpasswords.ui.components.LockRuneString5656 import com.peachpasswords.ui.components.PeachMark5757 import com.peachpasswords.ui.theme.LocalPeachAccent58-import com.peachpasswords.ui.theme.PeachColors58+import com.peachpasswords.ui.theme.peachColors5959 import com.peachpasswords.ui.security.StrengthBar6060 import com.peachpasswords.ui.security.scorePassword6161 import com.peachpasswords.ui.security.strengthColor@@ -130,13 +130,13 @@130130             Spacer(Modifier.height(18.dp))131131             Text(132132                 text = if (state.hasVault) "VAULT LOCKED" else "NEW VAULT",133-                color = PeachColors.T2,133+                color = peachColors.T2,134134                 style = PeachType.lockEyebrow,135135             )136136             Spacer(Modifier.height(10.dp))137137             Text(138138                 text = if (state.hasVault) "unlock\nyour vault." else "keep your\nsecrets.",139-                color = PeachColors.T0,139+                color = peachColors.T0,140140                 style = if (state.hasVault) PeachType.lockHeadline else PeachType.createHeadline,141141                 textAlign = TextAlign.Center,142142             )@@ -188,7 +188,7 @@188188 189189                 Text(190190                     text = state.error ?: " ",191-                    color = PeachColors.Breach,191+                    color = peachColors.Breach,192192                     style = PeachType.labelMono.copy(fontSize = 11.sp),193193                     textAlign = TextAlign.Center,194194                     modifier = Modifier.fillMaxWidth().padding(top = 12.dp).height(18.dp),@@ -219,7 +219,7 @@219219                     Spacer(Modifier.height(8.dp))220220                     Text(221221                         text = "Forgot your password?",222-                        color = PeachColors.T2,222+                        color = peachColors.T2,223223                         style = PeachType.labelMono.copy(fontSize = 11.sp),224224                         textAlign = TextAlign.Center,225225                         modifier = Modifier.fillMaxWidth()@@ -240,7 +240,7 @@240240 241241 @Composable242242 private fun FieldLabel(text: String) {243-    Text(text.uppercase(), color = PeachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))243+    Text(text.uppercase(), color = peachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))244244 }245245 246246 /** IBM Plex Mono 18sp, wide tracking — the create-vault input style (spec §5.2). */@@ -253,7 +253,7 @@253253             .fillMaxWidth()254254             .clip(RoundedCornerShape(18.dp))255255             .background(Color(0xE0131109))256-            .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))256+            .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))257257             .padding(20.dp),258258         content = content,259259     )@@ -271,11 +271,12 @@271271     val accent = LocalPeachAccent.current272272     val interaction = remember { MutableInteractionSource() }273273     val focused by interaction.collectIsFocusedAsState()274+    val hairline = peachColors.T3274275     BasicTextField(275276         value = value,276277         onValueChange = onChange,277278         singleLine = true,278-        textStyle = textStyle.copy(color = PeachColors.T0, textAlign = TextAlign.Center),279+        textStyle = textStyle.copy(color = peachColors.T0, textAlign = TextAlign.Center),279280         cursorBrush = SolidColor(accent),280281         visualTransformation = PasswordVisualTransformation(),281282         keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password, imeAction = imeAction),@@ -285,7 +286,7 @@285286             .fillMaxWidth()286287             .drawBehind {287288                 drawRect(288-                    color = if (focused) accent else PeachColors.T3,289+                    color = if (focused) accent else hairline,289290                     topLeft = Offset(0f, size.height - 1.dp.toPx()),290291                     size = Size(size.width, 1.dp.toPx()),291292                 )@@ -294,7 +295,7 @@294295         decorationBox = { inner ->295296             Box(contentAlignment = Alignment.Center) {296297                 if (value.isEmpty()) {297-                    Text(placeholder, style = textStyle.copy(color = PeachColors.T2, textAlign = TextAlign.Center))298+                    Text(placeholder, style = textStyle.copy(color = peachColors.T2, textAlign = TextAlign.Center))298299                 }299300                 inner()300301             }@@ -332,17 +333,17 @@332333         "Codex" to PeachNav.CodexRestore,333334     )334335     Column(horizontalAlignment = Alignment.CenterHorizontally) {335-        Text("restore instead", color = PeachColors.T1, style = PeachType.labelMono)336+        Text("restore instead", color = peachColors.T1, style = PeachType.labelMono)336337         Spacer(Modifier.height(10.dp))337338         Row(horizontalArrangement = Arrangement.spacedBy(6.dp)) {338339             tabs.forEach { (label, dest) ->339340                 Box(340341                     modifier = Modifier341-                        .border(1.dp, PeachColors.T3, RoundedCornerShape(8.dp))342+                        .border(1.dp, peachColors.T3, RoundedCornerShape(8.dp))342343                         .clickable { onNavigate(dest) }343344                         .padding(horizontal = 10.dp, vertical = 8.dp),344345                 ) {345-                    Text(label, color = PeachColors.T1, style = PeachType.sortPill)346+                    Text(label, color = peachColors.T1, style = PeachType.sortPill)346347                 }347348             }348349         }

view file

app/src/main/java/com/peachpasswords/ui/onboarding/OnboardingScreen.kt+13 −13
@@ -42,7 +42,7 @@4242 import androidx.compose.ui.unit.sp4343 import androidx.compose.material3.Text4444 import com.peachpasswords.ui.theme.LocalPeachAccent45-import com.peachpasswords.ui.theme.PeachColors45+import com.peachpasswords.ui.theme.peachColors4646 import com.peachpasswords.ui.theme.PeachType4747 import com.peachpasswords.ui.theme.ShellBackground4848 @@ -166,8 +166,8 @@166166         modifier = Modifier167167             .fillMaxWidth()168168             .clip(RoundedCornerShape(18.dp))169-            .background(PeachColors.SurfaceElevated)170-            .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))169+            .background(peachColors.SurfaceElevated)170+            .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))171171             .padding(horizontal = 24.dp, vertical = 28.dp),172172         content = content,173173     )@@ -184,22 +184,22 @@184184 185185 @Composable186186 private fun WelcomeCard() {187-    Text("welcome to\npeach.", color = PeachColors.T0, style = headline())187+    Text("welcome to\npeach.", color = peachColors.T0, style = headline())188188     Spacer(Modifier.height(18.dp))189189     Text(190190         "Your passwords live here, on your device. Nothing leaves without your permission.",191-        color = PeachColors.T1,191+        color = peachColors.T1,192192         style = PeachType.body.copy(fontSize = 13.sp, lineHeight = (13 * 1.5).sp),193193     )194194 }195195 196196 @Composable197197 private fun TwoKeysCard() {198-    Text("two keys,\nnot one.", color = PeachColors.T0, style = headline())198+    Text("two keys,\nnot one.", color = peachColors.T0, style = headline())199199     Spacer(Modifier.height(18.dp))200200     Text(201201         "Your master password encrypts everything. Your recovery words are your backup. Both are yours alone.",202-        color = PeachColors.T1,202+        color = peachColors.T1,203203         style = PeachType.body.copy(fontSize = 13.sp, lineHeight = (13 * 1.5).sp),204204     )205205 }@@ -207,7 +207,7 @@207207 @Composable208208 private fun EverythingCard() {209209     val accent = LocalPeachAccent.current210-    Text("everything\nyou need.", color = PeachColors.T0, style = headline())210+    Text("everything\nyou need.", color = peachColors.T0, style = headline())211211     Spacer(Modifier.height(20.dp))212212 213213     FeatureRow("Autofill", "works in every browser and app")@@ -239,7 +239,7 @@239239             Spacer(Modifier.width(8.dp))240240             Text(241241                 "Peach is local-first. If you lose your password and recovery words, your vault cannot be recovered.",242-                color = PeachColors.T1,242+                color = peachColors.T1,243243                 style = PeachType.labelMono.copy(fontSize = 10.sp, lineHeight = (10 * 1.5).sp),244244             )245245         }@@ -254,7 +254,7 @@254254         Spacer(Modifier.width(8.dp))255255         Text(256256             buildLabel(name, desc),257-            color = PeachColors.T1,257+            color = peachColors.T1,258258             style = PeachType.labelMono.copy(fontSize = 11.sp, lineHeight = (11 * 1.45).sp),259259         )260260     }@@ -281,7 +281,7 @@281281             if (card > 0) {282282                 Text(283283                     "back",284-                    color = PeachColors.T2,284+                    color = peachColors.T2,285285                     style = PeachType.labelMono.copy(fontSize = 11.sp, letterSpacing = 0.04.em),286286                     modifier = Modifier287287                         .clip(RoundedCornerShape(6.dp))@@ -304,7 +304,7 @@304304                         .padding(horizontal = 4.dp)305305                         .size(if (activeDot) 8.dp else 6.dp)306306                         .clip(RoundedCornerShape(999.dp))307-                        .background(if (activeDot) accent else PeachColors.T2),307+                        .background(if (activeDot) accent else peachColors.T2),308308                 )309309             }310310         }@@ -314,7 +314,7 @@314314             val onLast = card == cardCount - 1315315             Text(316316                 if (onLast) "Get started" else "next",317-                color = PeachColors.T1,317+                color = peachColors.T1,318318                 style = PeachType.labelMono.copy(fontSize = 11.sp, letterSpacing = 0.04.em),319319                 modifier = Modifier320320                     .clip(RoundedCornerShape(6.dp))

view file

app/src/main/java/com/peachpasswords/ui/pairing/ChirpPairScreen.kt+14 −14
@@ -40,7 +40,7 @@4040 import com.peachpasswords.ui.components.BirdAnimation4141 import com.peachpasswords.ui.components.PairingAnimState4242 import com.peachpasswords.ui.theme.LocalPeachAccent43-import com.peachpasswords.ui.theme.PeachColors43+import com.peachpasswords.ui.theme.peachColors4444 import com.peachpasswords.ui.theme.PeachType4545 import com.peachpasswords.ui.theme.ShellBackground4646 @@ -63,12 +63,12 @@6363             ) {6464                 Text(6565                     text = "‹",66-                    color = PeachColors.T1,66+                    color = peachColors.T1,6767                     fontSize = 26.sp,6868                     modifier = Modifier.clip(CircleShape).clickable(onClick = onBack).padding(horizontal = 8.dp),6969                 )7070                 Spacer(Modifier.size(8.dp))71-                Text("Sync", color = PeachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)71+                Text("Sync", color = peachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 19.sp)7272             }7373 7474             Spacer(Modifier.height(4.dp))@@ -112,12 +112,12 @@112112 @Composable113113 private fun StatusChip(phase: PairingPhase, accent: Color) {114114     val (label, dot) = when (phase) {115-        PairingPhase.IDLE -> "ready" to PeachColors.T2115+        PairingPhase.IDLE -> "ready" to peachColors.T2116116         PairingPhase.LISTENING, PairingPhase.CHIRPING -> "listening" to accent117117         PairingPhase.HANDSHAKE -> "verifying" to accent118118         PairingPhase.PAIRED -> "paired" to Color(0xFF7FB069)119-        PairingPhase.MIC_DENIED -> "mic blocked" to PeachColors.Breach120-        else -> "interrupted" to PeachColors.Breach119+        PairingPhase.MIC_DENIED -> "mic blocked" to peachColors.Breach120+        else -> "interrupted" to peachColors.Breach121121     }122122     val active = phase == PairingPhase.LISTENING || phase == PairingPhase.CHIRPING || phase == PairingPhase.HANDSHAKE123123     // Pulsing dot while the pairing is live (1.0→1.4 over 1.2s, spec Phase 7).@@ -137,7 +137,7 @@137137     ) {138138         Box(Modifier.size(4.dp).graphicsLayer { scaleX = dotScale; scaleY = dotScale }.clip(CircleShape).background(dot))139139         Spacer(Modifier.size(6.dp))140-        Text(label, color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 9.sp, letterSpacing = 0.08.em)140+        Text(label, color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 9.sp, letterSpacing = 0.08.em)141141     }142142 }143143 @@ -154,9 +154,9 @@154154         else -> "Pairing interrupted" to (error ?: "Something went wrong. Try again.")155155     }156156     Column(modifier = Modifier.fillMaxWidth(), horizontalAlignment = Alignment.CenterHorizontally) {157-        Text(headline, color = PeachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 26.sp, textAlign = TextAlign.Center)157+        Text(headline, color = peachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 26.sp, textAlign = TextAlign.Center)158158         Spacer(Modifier.height(8.dp))159-        Text(sub, color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp, textAlign = TextAlign.Center)159+        Text(sub, color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp, textAlign = TextAlign.Center)160160     }161161 }162162 @@ -166,7 +166,7 @@166166     when (phase) {167167         PairingPhase.IDLE -> PillButton("Start pairing", accent, filled = true) { vm.startPairing() }168168         PairingPhase.LISTENING, PairingPhase.CHIRPING, PairingPhase.HANDSHAKE ->169-            PillButton("Cancel", PeachColors.T2, filled = false) { vm.reset() }169+            PillButton("Cancel", peachColors.T2, filled = false) { vm.reset() }170170         PairingPhase.PAIRED -> PillButton("Done", accent, filled = true) { vm.reset() }171171         else -> PillButton("Try again", accent, filled = true) { vm.startPairing() }172172     }@@ -174,7 +174,7 @@174174         Spacer(Modifier.height(10.dp))175175         Text(176176             "demo flow",177-            color = PeachColors.T3,177+            color = peachColors.T3,178178             fontFamily = PeachType.Mono,179179             fontSize = 9.sp,180180             modifier = Modifier.fillMaxWidth().clickable { vm.runDemo() }.padding(8.dp),@@ -209,9 +209,9 @@209209             modifier = Modifier.fillMaxWidth().padding(horizontal = 36.dp),210210             horizontalAlignment = Alignment.CenterHorizontally,211211         ) {212-            Text("Verify the code", color = PeachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp)212+            Text("Verify the code", color = peachColors.T0, fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp)213213             Spacer(Modifier.height(6.dp))214-            Text("It must match on both devices.", color = PeachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp, textAlign = TextAlign.Center)214+            Text("It must match on both devices.", color = peachColors.T2, fontFamily = PeachType.Body, fontSize = 13.sp, textAlign = TextAlign.Center)215215             Spacer(Modifier.height(28.dp))216216             Text(217217                 text = code,@@ -223,7 +223,7 @@223223             Spacer(Modifier.height(34.dp))224224             PillButton("They match — pair", accent, filled = true, onClick = onConfirm)225225             Spacer(Modifier.height(10.dp))226-            PillButton("Cancel", PeachColors.T2, filled = false, onClick = onCancel)226+            PillButton("Cancel", peachColors.T2, filled = false, onClick = onCancel)227227         }228228     }229229 }

view file

app/src/main/java/com/peachpasswords/ui/recovery/RecoveryWordEntryScreen.kt+20 −18
@@ -60,7 +60,7 @@6060 import com.peachpasswords.ui.security.strengthColor6161 import com.peachpasswords.ui.security.strengthLabel6262 import com.peachpasswords.ui.theme.LocalPeachAccent63-import com.peachpasswords.ui.theme.PeachColors63+import com.peachpasswords.ui.theme.peachColors6464 import com.peachpasswords.ui.theme.PeachType6565 import com.peachpasswords.ui.theme.ShellBackground6666 import com.peachpasswords.vault.VaultRepository@@ -238,7 +238,7 @@238238             Spacer(Modifier.height(10.dp))239239             Text(240240                 state.wordsError,241-                color = PeachColors.Breach,241+                color = peachColors.Breach,242242                 style = PeachType.labelMono.copy(fontSize = 10.sp),243243             )244244         }@@ -247,7 +247,7 @@247247     Spacer(Modifier.height(18.dp))248248     AccentButton("Continue", enabled = state.checksumValid, onClick = vm::continueToPassword)249249     Spacer(Modifier.height(10.dp))250-    GhostButton("Back to login", PeachColors.T1, onBack)250+    GhostButton("Back to login", peachColors.T1, onBack)251251 }252252 253253 @Composable@@ -264,6 +264,7 @@264264     val accent = LocalPeachAccent.current265265     val interaction = remember { MutableInteractionSource() }266266     val focused by interaction.collectIsFocusedAsState()267+    val hairline = peachColors.T3267268     val isValidWord = remember(value) { value.isNotBlank() && WORD_LIST.contains(value) }268269     val suggestions = remember(value, focused) {269270         if (focused && value.isNotBlank() && !isValidWord) getWordSuggestions(value, 4) else emptyList()@@ -283,7 +284,7 @@283284                 value = value,284285                 onValueChange = onValueChange,285286                 singleLine = true,286-                textStyle = PeachType.recoveryWord.copy(color = PeachColors.T0),287+                textStyle = PeachType.recoveryWord.copy(color = peachColors.T0),287288                 cursorBrush = SolidColor(accent),288289                 keyboardOptions = KeyboardOptions(289290                     keyboardType = KeyboardType.Password, // hint: no autocorrect/suggestions@@ -297,7 +298,7 @@297298                     .background(if (isValidWord) accent.copy(alpha = 0.08f) else Color.Transparent)298299                     .drawBehind {299300                         drawRect(300-                            color = if (focused) accent else PeachColors.T3,301+                            color = if (focused) accent else hairline,301302                             topLeft = Offset(0f, size.height - 1.dp.toPx()),302303                             size = Size(size.width, 1.dp.toPx()),303304                         )@@ -311,13 +312,13 @@311312                 Modifier312313                     .fillMaxWidth()313314                     .clip(RoundedCornerShape(6.dp))314-                    .background(PeachColors.S2)315+                    .background(peachColors.S2)315316                     .padding(vertical = 2.dp),316317             ) {317318                 suggestions.forEach { word ->318319                     Text(319320                         word,320-                        color = PeachColors.T1,321+                        color = peachColors.T1,321322                         style = PeachType.labelMono.copy(fontSize = 11.sp),322323                         modifier = Modifier323324                             .fillMaxWidth()@@ -380,7 +381,7 @@380381 381382         Text(382383             state.passwordError ?: " ",383-            color = PeachColors.Breach,384+            color = peachColors.Breach,384385             style = PeachType.labelMono.copy(fontSize = 10.sp),385386             textAlign = TextAlign.Center,386387             modifier = Modifier.fillMaxWidth().padding(top = 12.dp).height(16.dp),@@ -398,23 +399,23 @@398399 @Composable399400 private fun NoEscrowStep(onRestore: () -> Unit, onBack: () -> Unit) {400401     GlassPanel {401-        Text("⊘", color = PeachColors.T2, style = TextStyle(fontFamily = PeachType.Display, fontSize = 40.sp))402+        Text("⊘", color = peachColors.T2, style = TextStyle(fontFamily = PeachType.Display, fontSize = 40.sp))402403         Spacer(Modifier.height(12.dp))403404         Text(404405             "recovery not available",405-            color = PeachColors.T1,406+            color = peachColors.T1,406407             style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 26.sp),407408         )408409         Spacer(Modifier.height(10.dp))409410         Text(410411             "Recovery words were not set up for this vault. You can restore from a backup instead.",411-            color = PeachColors.T2,412+            color = peachColors.T2,412413             style = PeachType.labelMono.copy(fontSize = 10.sp),413414         )414415         Spacer(Modifier.height(18.dp))415416         GhostButton("Restore from backup", LocalPeachAccent.current, onRestore)416417         Spacer(Modifier.height(8.dp))417-        GhostButton("Back to login", PeachColors.T1, onBack)418+        GhostButton("Back to login", peachColors.T1, onBack)418419     }419420 }420421 @@ -422,19 +423,19 @@422423 423424 @Composable424425 private fun Eyebrow(text: String) =425-    Text(text, color = PeachColors.T2, style = PeachType.lockEyebrow)426+    Text(text, color = peachColors.T2, style = PeachType.lockEyebrow)426427 427428 @Composable428429 private fun Headline(text: String) =429430     Text(430431         text,431-        color = PeachColors.T0,432+        color = peachColors.T0,432433         style = PeachType.lockHeadline,433434     )434435 435436 @Composable436437 private fun FieldLabel(text: String) =437-    Text(text.uppercase(), color = PeachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))438+    Text(text.uppercase(), color = peachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))438439 439440 @Composable440441 private fun PasswordField(@@ -447,12 +448,13 @@447448     val accent = LocalPeachAccent.current448449     val interaction = remember { MutableInteractionSource() }449450     val focused by interaction.collectIsFocusedAsState()451+    val hairline = peachColors.T3450452     Row(verticalAlignment = Alignment.CenterVertically) {451453         BasicTextField(452454             value = value,453455             onValueChange = onChange,454456             singleLine = true,455-            textStyle = PeachType.unlockInput.copy(color = PeachColors.T0),457+            textStyle = PeachType.unlockInput.copy(color = peachColors.T0),456458             cursorBrush = SolidColor(accent),457459             visualTransformation = if (reveal) VisualTransformation.None else PasswordVisualTransformation(),458460             keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password, imeAction = imeAction),@@ -461,7 +463,7 @@461463                 .weight(1f)462464                 .drawBehind {463465                     drawRect(464-                        color = if (focused) accent else PeachColors.T3,466+                        color = if (focused) accent else hairline,465467                         topLeft = Offset(0f, size.height - 1.dp.toPx()),466468                         size = Size(size.width, 1.dp.toPx()),467469                     )@@ -484,7 +486,7 @@484486             .fillMaxWidth()485487             .clip(RoundedCornerShape(18.dp))486488             .background(Color(0xE0131109))487-            .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))489+            .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))488490             .padding(20.dp),489491         content = content,490492     )

view file