7d04b4536bc7
migrate ui/vault/ call sites to peachColors palette accessor (hoist colors out of draw/lazy scopes)
- time
- 2026-06-09 13:37 UTC · 5 months ago
- machine
- koh2
- agent
- claude-opus-4-8
- session
- light theme palette migration
- parent
- cfc1b2622579
↓ peach-android-7d04b453.tar.gzatlas at this save
files changed23 files
app/src/main/java/com/peachpasswords/ui/vault/AdditionalUrlsDetail.kt+9 −8app/src/main/java/com/peachpasswords/ui/vault/AdditionalUrlsEditor.kt+6 −6app/src/main/java/com/peachpasswords/ui/vault/CardDetailFields.kt+9 −8app/src/main/java/com/peachpasswords/ui/vault/CardEditFields.kt+5 −5app/src/main/java/com/peachpasswords/ui/vault/ContextMenuSheet.kt+8 −8app/src/main/java/com/peachpasswords/ui/vault/DetailTagRow.kt+2 −2app/src/main/java/com/peachpasswords/ui/vault/EditableFieldRow.kt+6 −6app/src/main/java/com/peachpasswords/ui/vault/EntryDetailGenerator.kt+6 −6app/src/main/java/com/peachpasswords/ui/vault/EntryDetailScreen.kt+14 −13app/src/main/java/com/peachpasswords/ui/vault/EntryEditScreen.kt+15 −15app/src/main/java/com/peachpasswords/ui/vault/ExportScreen.kt+26 −26app/src/main/java/com/peachpasswords/ui/vault/IdentitySuggestDropdown.kt+7 −7app/src/main/java/com/peachpasswords/ui/vault/ImportScreen.kt+31 −31app/src/main/java/com/peachpasswords/ui/vault/MultiSelectUi.kt+5 −5app/src/main/java/com/peachpasswords/ui/vault/NotesModeScreen.kt+10 −10app/src/main/java/com/peachpasswords/ui/vault/PasswordHistorySection.kt+3 −3app/src/main/java/com/peachpasswords/ui/vault/RecoveryWordsScreen.kt+16 −16app/src/main/java/com/peachpasswords/ui/vault/TagChipEditor.kt+7 −7app/src/main/java/com/peachpasswords/ui/vault/TagListWidgets.kt+5 −5app/src/main/java/com/peachpasswords/ui/vault/TotpInlineEdit.kt+7 −7app/src/main/java/com/peachpasswords/ui/vault/TrashScreen.kt+14 −14app/src/main/java/com/peachpasswords/ui/vault/VaultHealthScreen.kt+16 −13app/src/main/java/com/peachpasswords/ui/vault/VaultListScreen.kt+27 −26app/src/main/java/com/peachpasswords/ui/vault/AdditionalUrlsDetail.kt+9 −8
@@ -44,7 +44,7 @@4444 import androidx.compose.ui.unit.sp4545 import com.peachpasswords.ui.theme.LocalPeachAccent4646 import com.peachpasswords.ui.theme.LocalReduceMotion47-import com.peachpasswords.ui.theme.PeachColors47+import com.peachpasswords.ui.theme.peachColors4848 import com.peachpasswords.ui.theme.PeachType4949 5050 /**@@ -69,7 +69,7 @@6969 AdditionalUrlFieldShell(label = "URL ${index + 2}") {7070 Text(7171 url,72- color = PeachColors.T0,72+ color = peachColors.T0,7373 style = PeachType.bodyMono,7474 modifier = Modifier.weight(1f),7575 )@@ -108,16 +108,17 @@108108 label: String,109109 content: @Composable androidx.compose.foundation.layout.RowScope.() -> Unit,110110 ) {111+ val hairline = peachColors.T3111112 Column(112113 Modifier.fillMaxWidth().padding(vertical = 10.dp).drawBehind {113114 drawRect(114- color = PeachColors.T3,115+ color = hairline,115116 topLeft = Offset(0f, size.height - 1.dp.toPx()),116117 size = Size(size.width, 1.dp.toPx()),117118 )118119 },119120 ) {120- Text(label.uppercase(), color = PeachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))121+ Text(label.uppercase(), color = peachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))121122 Spacer(Modifier.height(6.dp))122123 Row(verticalAlignment = Alignment.CenterVertically, content = content)123124 }@@ -129,14 +130,14 @@129130 Modifier130131 .size(36.dp)131132 .clip(RoundedCornerShape(6.dp))132- .background(PeachColors.S2)133+ .background(peachColors.S2)133134 .clickable(onClick = onClick),134135 contentAlignment = Alignment.Center,135136 ) {136137 Icon(137138 Icons.AutoMirrored.Rounded.OpenInNew,138139 contentDescription = "open in browser",139- tint = PeachColors.T2,140+ tint = peachColors.T2,140141 modifier = Modifier.size(15.dp),141142 )142143 }@@ -162,7 +163,7 @@162163 Modifier163164 .size(36.dp)164165 .clip(RoundedCornerShape(6.dp))165- .background(PeachColors.S2)166+ .background(peachColors.S2)166167 .clickable(onClick = onCopy)167168 .drawBehind {168169 if (animate && sheen < 1f) {@@ -190,7 +191,7 @@190191 Icon(191192 if (copied) Icons.Rounded.Check else Icons.Rounded.ContentCopy,192193 contentDescription = "copy",193- tint = if (copied) accent else PeachColors.T1,194+ tint = if (copied) accent else peachColors.T1,194195 modifier = Modifier.size(15.dp),195196 )196197 }app/src/main/java/com/peachpasswords/ui/vault/AdditionalUrlsEditor.kt+6 −6
@@ -25,7 +25,7 @@2525 import androidx.compose.ui.unit.dp2626 import androidx.compose.ui.unit.sp2727 import com.peachpasswords.ui.theme.LocalPeachAccent28-import com.peachpasswords.ui.theme.PeachColors28+import com.peachpasswords.ui.theme.peachColors2929 import com.peachpasswords.ui.theme.PeachType3030 3131 /** E3 — hard cap on additional URLs, matching the spec. */@@ -55,7 +55,7 @@5555 Column(Modifier.fillMaxWidth().padding(bottom = 14.dp)) {5656 Text(5757 "URL ${index + 2}",58- color = PeachColors.T1,58+ color = peachColors.T1,5959 fontFamily = PeachType.Mono,6060 fontSize = 8.sp,6161 )@@ -63,7 +63,7 @@6363 Row(verticalAlignment = Alignment.CenterVertically) {6464 Box(6565 Modifier.weight(1f)66- .border(1.dp, PeachColors.T3, RoundedCornerShape(10.dp))66+ .border(1.dp, peachColors.T3, RoundedCornerShape(10.dp))6767 .padding(horizontal = 12.dp, vertical = 12.dp),6868 ) {6969 BasicTextField(@@ -71,7 +71,7 @@7171 onValueChange = { onChange(index, it) },7272 singleLine = true,7373 textStyle = TextStyle(74- color = PeachColors.T0,74+ color = peachColors.T0,7575 fontFamily = PeachType.Mono,7676 fontSize = 13.sp,7777 ),@@ -82,7 +82,7 @@8282 Spacer(Modifier.width(8.dp))8383 Text(8484 "×",85- color = PeachColors.T2,85+ color = peachColors.T2,8686 fontFamily = PeachType.Mono,8787 fontSize = 16.sp,8888 modifier = Modifier@@ -109,7 +109,7 @@109109 } else {110110 Text(111111 "Max $MAX_ADDITIONAL_URLS additional URLs",112- color = PeachColors.T2,112+ color = peachColors.T2,113113 fontFamily = PeachType.Mono,114114 fontSize = 9.sp,115115 )app/src/main/java/com/peachpasswords/ui/vault/CardDetailFields.kt+9 −8
@@ -23,7 +23,7 @@2323 import androidx.compose.ui.unit.dp2424 import androidx.compose.ui.unit.sp2525 import com.peachpasswords.ui.theme.LocalPeachAccent26-import com.peachpasswords.ui.theme.PeachColors26+import com.peachpasswords.ui.theme.peachColors2727 import com.peachpasswords.ui.theme.PeachType2828 import com.peachpasswords.vault.VaultEntry2929 @@ -64,14 +64,14 @@6464 labelTrailing = {6565 val net = CardFieldUtils.networkLabel(network)6666 if (net.isNotEmpty()) {67- Text(net, color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)67+ Text(net, color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)6868 }6969 },7070 ) {7171 Text(7272 text = if (cardRevealed) CardFieldUtils.formatPan(rawNumber, network)7373 else CardFieldUtils.maskedPan(rawNumber, network),74- color = PeachColors.T0,74+ color = peachColors.T0,7575 style = PeachType.bodyMono,7676 modifier = Modifier.weight(1f),7777 )@@ -85,7 +85,7 @@8585 8686 entry.cardholderName?.takeIf { it.isNotBlank() }?.let { name ->8787 CardShell("cardholder") {88- Text(name, color = PeachColors.T0, style = PeachType.body, modifier = Modifier.weight(1f))88+ Text(name, color = peachColors.T0, style = PeachType.body, modifier = Modifier.weight(1f))8989 copyButton(copiedField == "cardholderName") { onCopy("cardholderName", name) }9090 }9191 }@@ -93,7 +93,7 @@9393 val expiry = CardFieldUtils.displayExpiry(entry.expMonth, entry.expYear)9494 if (expiry.isNotBlank()) {9595 CardShell("expiry") {96- Text(expiry, color = PeachColors.T0, style = PeachType.bodyMono, modifier = Modifier.weight(1f))96+ Text(expiry, color = peachColors.T0, style = PeachType.bodyMono, modifier = Modifier.weight(1f))9797 copyButton(copiedField == "expiry") { onCopy("expiry", expiry) }9898 }9999 }@@ -103,7 +103,7 @@103103 CardShell("cvc") {104104 Text(105105 text = if (cvcRevealed) cvc else "•".repeat(cvc.length.coerceIn(3, 4)),106- color = PeachColors.T0,106+ color = peachColors.T0,107107 style = PeachType.bodyMono,108108 modifier = Modifier.weight(1f),109109 )@@ -125,17 +125,18 @@125125 labelTrailing: (@Composable () -> Unit)? = null,126126 content: @Composable androidx.compose.foundation.layout.RowScope.() -> Unit,127127 ) {128+ val hairline = peachColors.T3128129 Column(129130 Modifier.fillMaxWidth().padding(vertical = 10.dp).drawBehind {130131 drawRect(131- color = PeachColors.T3,132+ color = hairline,132133 topLeft = Offset(0f, size.height - 1.dp.toPx()),133134 size = Size(size.width, 1.dp.toPx()),134135 )135136 },136137 ) {137138 Row(verticalAlignment = Alignment.CenterVertically) {138- Text(label.uppercase(), color = PeachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))139+ Text(label.uppercase(), color = peachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))139140 if (labelTrailing != null) {140141 Spacer(Modifier.width(8.dp))141142 labelTrailing()app/src/main/java/com/peachpasswords/ui/vault/CardEditFields.kt+5 −5
@@ -26,7 +26,7 @@2626 import androidx.compose.ui.unit.dp2727 import androidx.compose.ui.unit.sp2828 import com.peachpasswords.ui.theme.LocalPeachAccent29-import com.peachpasswords.ui.theme.PeachColors29+import com.peachpasswords.ui.theme.peachColors3030 import com.peachpasswords.ui.theme.PeachType3131 3232 /**@@ -63,7 +63,7 @@6363 labelTrailing = {6464 val net = CardFieldUtils.networkLabel(network)6565 if (net.isNotEmpty()) {66- Text(net, color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)66+ Text(net, color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)6767 }6868 },6969 )@@ -122,7 +122,7 @@122122 val accent = LocalPeachAccent.current123123 Column(Modifier.fillMaxWidth().padding(bottom = 14.dp)) {124124 Row(verticalAlignment = Alignment.CenterVertically) {125- Text(label.uppercase(), color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)125+ Text(label.uppercase(), color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)126126 if (labelTrailing != null) {127127 Spacer(Modifier.width(8.dp))128128 labelTrailing()@@ -132,7 +132,7 @@132132 Row(verticalAlignment = Alignment.CenterVertically) {133133 Box(134134 Modifier.weight(1f)135- .border(1.dp, PeachColors.T3, RoundedCornerShape(10.dp))135+ .border(1.dp, peachColors.T3, RoundedCornerShape(10.dp))136136 .padding(horizontal = 12.dp, vertical = 12.dp),137137 ) {138138 BasicTextField(@@ -140,7 +140,7 @@140140 onValueChange = onChange,141141 singleLine = true,142142 textStyle = TextStyle(143- color = PeachColors.T0,143+ color = peachColors.T0,144144 fontFamily = if (mono) PeachType.Mono else PeachType.Body,145145 fontSize = 13.sp,146146 ),app/src/main/java/com/peachpasswords/ui/vault/ContextMenuSheet.kt+8 −8
@@ -32,7 +32,7 @@3232 import androidx.compose.ui.unit.dp3333 import androidx.compose.ui.unit.sp3434 import com.peachpasswords.ui.theme.LocalPeachAccent35-import com.peachpasswords.ui.theme.PeachColors35+import com.peachpasswords.ui.theme.peachColors3636 import com.peachpasswords.ui.theme.PeachType3737 import com.peachpasswords.vault.VaultEntry3838 import com.peachpasswords.vault.hasTOTP@@ -61,7 +61,7 @@6161 ModalBottomSheet(6262 onDismissRequest = onDismiss,6363 sheetState = sheetState,64- containerColor = PeachColors.SurfaceElevated,64+ containerColor = peachColors.SurfaceElevated,6565 dragHandle = null,6666 ) {6767 Column(@@ -73,7 +73,7 @@7373 // Entry name header — non-interactive title.7474 Text(7575 text = entry.title,76- color = PeachColors.T0,76+ color = peachColors.T0,7777 style = PeachType.entryNameList.copy(fontSize = 15.sp),7878 modifier = Modifier.padding(horizontal = 20.dp, vertical = 12.dp),7979 )@@ -92,7 +92,7 @@9292 ActionRow(label = "Edit", onClick = { onEdit(); onDismiss() })9393 ActionRow(9494 label = "Move to trash",95- textColor = PeachColors.Breach,95+ textColor = peachColors.Breach,9696 onClick = { onMoveToTrash(); onDismiss() },9797 )9898 @@ -109,7 +109,7 @@109109 Modifier110110 .fillMaxWidth()111111 .height(1.dp)112- .background(PeachColors.T3),112+ .background(peachColors.T3),113113 )114114 }115115 @@ -120,7 +120,7 @@120120 @Composable121121 private fun ActionRow(122122 label: String,123- textColor: Color = PeachColors.T0,123+ textColor: Color = peachColors.T0,124124 onClick: () -> Unit,125125 ) {126126 val accent = LocalPeachAccent.current@@ -131,7 +131,7 @@131131 .fillMaxWidth()132132 .heightIn(min = 44.dp)133133 .clickable(interactionSource = interaction, indication = null, onClick = onClick)134- .background(if (pressed) PeachColors.T4 else Color.Transparent)134+ .background(if (pressed) peachColors.T4 else Color.Transparent)135135 .drawBehind {136136 if (pressed) {137137 drawRect(@@ -165,7 +165,7 @@165165 ) {166166 Text(167167 text = "Cancel",168- color = PeachColors.T2,168+ color = peachColors.T2,169169 style = PeachType.labelMono.copy(fontSize = 11.sp),170170 textAlign = TextAlign.Center,171171 )app/src/main/java/com/peachpasswords/ui/vault/DetailTagRow.kt+2 −2
@@ -19,7 +19,7 @@1919 import androidx.compose.ui.unit.dp2020 import androidx.compose.ui.unit.em2121 import com.peachpasswords.ui.theme.LocalPeachAccent22-import com.peachpasswords.ui.theme.PeachColors22+import com.peachpasswords.ui.theme.peachColors2323 import com.peachpasswords.ui.theme.PeachType2424 2525 /**@@ -35,7 +35,7 @@3535 ) {3636 Text(3737 "TAGS",38- color = PeachColors.T2,38+ color = peachColors.T2,3939 style = PeachType.labelMono.copy(letterSpacing = 0.08.em),4040 )4141 Spacer(Modifier.height(8.dp))app/src/main/java/com/peachpasswords/ui/vault/EditableFieldRow.kt+6 −6
@@ -55,7 +55,7 @@5555 import com.peachpasswords.ui.components.CopyButton5656 import com.peachpasswords.ui.lock.Biometrics5757 import com.peachpasswords.ui.theme.LocalPeachAccent58-import com.peachpasswords.ui.theme.PeachColors58+import com.peachpasswords.ui.theme.peachColors5959 import com.peachpasswords.ui.theme.PeachType6060 6161 /**@@ -90,7 +90,7 @@9090 if (!editing) {9191 Text(9292 value,93- color = PeachColors.T0,93+ color = peachColors.T0,9494 style = if (mono) PeachType.bodyMono else PeachType.body,9595 modifier = Modifier9696 .weight(1f)@@ -154,7 +154,7 @@154154 if (!editing) {155155 Text(156156 text = "•".repeat(value.length.coerceIn(8, 16)),157- color = PeachColors.T0,157+ color = peachColors.T0,158158 style = PeachType.bodyMono,159159 modifier = Modifier.weight(1f).clickable { beginEdit() },160160 )@@ -221,7 +221,7 @@221221 text = {222222 Text(223223 suggestion,224- color = PeachColors.T1,224+ color = peachColors.T1,225225 style = PeachType.labelMono.copy(letterSpacing = 0.06.em),226226 )227227 },@@ -250,7 +250,7 @@250250 value = draft,251251 onValueChange = onDraftChange,252252 singleLine = singleLine,253- textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),253+ textStyle = PeachType.bodyMono.copy(color = peachColors.T0),254254 cursorBrush = SolidColor(accent),255255 visualTransformation = transformation,256256 modifier = modifier@@ -275,7 +275,7 @@275275 modifier = Modifier.clip(RoundedCornerShape(6.dp)).clickable(onClick = onSave).padding(vertical = 4.dp),276276 )277277 Text(278- "✗", color = PeachColors.T2, style = PeachType.labelMono,278+ "✗", color = peachColors.T2, style = PeachType.labelMono,279279 modifier = Modifier.clip(RoundedCornerShape(6.dp)).clickable(onClick = onCancel).padding(horizontal = 6.dp, vertical = 4.dp),280280 )281281 Spacer(Modifier.width(1.dp))app/src/main/java/com/peachpasswords/ui/vault/EntryDetailGenerator.kt+6 −6
@@ -46,7 +46,7 @@4646 import androidx.compose.ui.unit.dp4747 import androidx.compose.ui.unit.sp4848 import com.peachpasswords.ui.theme.LocalPeachAccent49-import com.peachpasswords.ui.theme.PeachColors49+import com.peachpasswords.ui.theme.peachColors5050 import com.peachpasswords.ui.theme.PeachType5151 import com.peachpasswords.vault.PasswordGenerator5252 @@ -56,7 +56,7 @@5656 Icon(5757 Icons.Outlined.Build,5858 contentDescription = "generate password",59- tint = PeachColors.T2,59+ tint = peachColors.T2,6060 modifier = Modifier6161 .size(36.dp)6262 .clip(CircleShape)@@ -108,12 +108,12 @@108108 ModalBottomSheet(109109 onDismissRequest = onDismiss,110110 sheetState = sheetState,111- containerColor = PeachColors.S1,111+ containerColor = peachColors.S1,112112 ) {113113 Column(Modifier.fillMaxWidth().padding(horizontal = 20.dp, vertical = 4.dp)) {114114 Text(115115 "generate password",116- color = PeachColors.T0,116+ color = peachColors.T0,117117 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 18.sp,118118 )119119 Spacer(Modifier.height(8.dp))@@ -121,12 +121,12 @@121121 // Draft preview — empty until first generate.122122 Box(123123 Modifier.fillMaxWidth().clip(RoundedCornerShape(10.dp))124- .border(1.dp, PeachColors.T3, RoundedCornerShape(10.dp))124+ .border(1.dp, peachColors.T3, RoundedCornerShape(10.dp))125125 .padding(horizontal = 12.dp, vertical = 14.dp),126126 ) {127127 Text(128128 text = draft.ifEmpty { "tap generate" },129- color = if (draft.isEmpty()) PeachColors.T2 else PeachColors.T0,129+ color = if (draft.isEmpty()) peachColors.T2 else peachColors.T0,130130 fontFamily = PeachType.Mono, fontSize = 13.sp,131131 )132132 }app/src/main/java/com/peachpasswords/ui/vault/EntryDetailScreen.kt+14 −13
@@ -68,7 +68,7 @@6868 import com.peachpasswords.ui.lock.Biometrics6969 import com.peachpasswords.ui.theme.LocalPeachAccent7070 import com.peachpasswords.ui.theme.LocalReduceMotion71-import com.peachpasswords.ui.theme.PeachColors71+import com.peachpasswords.ui.theme.peachColors7272 import com.peachpasswords.ui.theme.PeachType7373 import com.peachpasswords.ui.theme.ShellBackground7474 import com.peachpasswords.vault.TOTPGenerator@@ -110,7 +110,7 @@110110 verticalAlignment = Alignment.CenterVertically,111111 ) {112112 Icon(113- Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "back", tint = PeachColors.T0,113+ Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "back", tint = peachColors.T0,114114 modifier = Modifier.size(40.dp).clip(CircleShape).clickable(onClick = onBack).padding(8.dp),115115 )116116 Box(Modifier.weight(1f), contentAlignment = Alignment.Center) {@@ -118,7 +118,7 @@118118 e == null -> {}119119 confirmingDelete -> Text(120120 "delete “${e.title}”?",121- color = PeachColors.Breach,121+ color = peachColors.Breach,122122 style = PeachType.labelMono.copy(letterSpacing = 0.08.em),123123 )124124 else -> Row(@@ -128,7 +128,7 @@128128 FaviconInitials(source = e.url ?: e.title, size = 16.dp)129129 val domain = remember(e.url, e.title) { e.displayDomain() }130130 if (domain.isNotEmpty()) {131- Text(domain, color = PeachColors.T2, style = TextStyle(fontFamily = PeachType.Mono, fontSize = 9.sp))131+ Text(domain, color = peachColors.T2, style = TextStyle(fontFamily = PeachType.Mono, fontSize = 9.sp))132132 }133133 }134134 }@@ -136,7 +136,7 @@136136 if (e != null) {137137 Icon(138138 Icons.Outlined.DeleteOutline, contentDescription = "delete",139- tint = if (confirmingDelete) PeachColors.Breach else PeachColors.T1,139+ tint = if (confirmingDelete) peachColors.Breach else peachColors.T1,140140 modifier = Modifier.size(40.dp).clip(CircleShape)141141 .clickable { if (confirmingDelete) vm.delete(onDone = onBack) else confirmingDelete = true }142142 .padding(8.dp),@@ -146,7 +146,7 @@146146 147147 if (e == null) {148148 Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {149- Text("entry not found", color = PeachColors.T1, style = PeachType.bodyMono)149+ Text("entry not found", color = peachColors.T1, style = PeachType.bodyMono)150150 }151151 return@Column152152 }@@ -155,15 +155,15 @@155155 if (e.isBreach()) {156156 Row(157157 Modifier.fillMaxWidth()158- .background(PeachColors.BreachBg)158+ .background(peachColors.BreachBg)159159 .padding(horizontal = 16.dp, vertical = 8.dp),160160 verticalAlignment = Alignment.CenterVertically,161161 ) {162- Text("⚠", color = PeachColors.Breach, style = PeachType.bodyMono)162+ Text("⚠", color = peachColors.Breach, style = PeachType.bodyMono)163163 Spacer(Modifier.width(10.dp))164164 Text(165165 "Password found in a data breach — change it now",166- color = PeachColors.Breach, style = PeachType.labelMono,166+ color = peachColors.Breach, style = PeachType.labelMono,167167 modifier = Modifier.weight(1f),168168 )169169 Text(@@ -185,13 +185,13 @@185185 Text(186186 text = e.title.firstOrNull()?.uppercase() ?: "P",187187 style = TextStyle(fontFamily = PeachType.Script, fontSize = 140.sp),188- color = PeachColors.T0.copy(alpha = 0.03f),188+ color = peachColors.T0.copy(alpha = 0.03f),189189 modifier = Modifier.align(Alignment.TopCenter).offset(y = (-16).dp),190190 )191191 Column(Modifier.fillMaxWidth().padding(top = 18.dp)) {192192 CharEnterText(193193 text = e.title,194- style = PeachType.entryNameHero.copy(color = PeachColors.T0),194+ style = PeachType.entryNameHero.copy(color = peachColors.T0),195195 )196196 Spacer(Modifier.height(8.dp))197197 Text(@@ -323,16 +323,17 @@323323 label: String,324324 content: @Composable androidx.compose.foundation.layout.RowScope.() -> Unit,325325 ) {326+ val hairline = peachColors.T3326327 Column(327328 Modifier.fillMaxWidth().padding(vertical = 10.dp).drawBehind {328329 drawRect(329- color = PeachColors.T3,330+ color = hairline,330331 topLeft = Offset(0f, size.height - 1.dp.toPx()),331332 size = Size(size.width, 1.dp.toPx()),332333 )333334 },334335 ) {335- Text(label.uppercase(), color = PeachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))336+ Text(label.uppercase(), color = peachColors.T2, style = PeachType.labelMono.copy(letterSpacing = 0.08.em))336337 Spacer(Modifier.height(6.dp))337338 Row(verticalAlignment = Alignment.CenterVertically, content = content)338339 }app/src/main/java/com/peachpasswords/ui/vault/EntryEditScreen.kt+15 −15
@@ -47,7 +47,7 @@4747 import androidx.hilt.navigation.compose.hiltViewModel4848 import com.peachpasswords.ui.components.CopyButton4949 import com.peachpasswords.ui.theme.LocalPeachAccent50-import com.peachpasswords.ui.theme.PeachColors50+import com.peachpasswords.ui.theme.peachColors5151 import com.peachpasswords.ui.theme.PeachMotion5252 import com.peachpasswords.ui.theme.PeachRadius5353 import com.peachpasswords.ui.theme.PeachType@@ -70,9 +70,9 @@7070 verticalAlignment = Alignment.CenterVertically,7171 horizontalArrangement = Arrangement.SpaceBetween,7272 ) {73- Text("cancel", color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 12.sp,73+ Text("cancel", color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 12.sp,7474 modifier = Modifier.clip(RoundedCornerShape(8.dp)).clickable(onClick = onBack).padding(8.dp))75- Text(if (vm.isNew) "new entry" else "edit", color = PeachColors.T1,75+ Text(if (vm.isNew) "new entry" else "edit", color = peachColors.T1,7676 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 16.sp)7777 Text("save", color = accent, fontFamily = PeachType.Mono, fontSize = 13.sp,7878 modifier = Modifier.clip(RoundedCornerShape(8.dp)).clickable { vm.save(onBack) }.padding(8.dp))@@ -84,7 +84,7 @@8484 Text(8585 text = f.title.first().uppercase(),8686 style = TextStyle(fontFamily = PeachType.Script, fontSize = 140.sp),87- color = PeachColors.T0.copy(alpha = 0.03f),87+ color = peachColors.T0.copy(alpha = 0.03f),8888 modifier = Modifier.align(Alignment.TopEnd).offset(x = (-16).dp, y = 8.dp),8989 )9090 }@@ -162,7 +162,7 @@162162 163163 f.error?.let {164164 Spacer(Modifier.height(8.dp))165- Text(it, color = PeachColors.Breach, fontFamily = PeachType.Mono, fontSize = 11.sp)165+ Text(it, color = peachColors.Breach, fontFamily = PeachType.Mono, fontSize = 11.sp)166166 }167167 Spacer(Modifier.height(40.dp))168168 }@@ -179,7 +179,7 @@179179 .clip(RoundedCornerShape(PeachRadius.TypeTab))180180 .border(181181 1.dp,182- if (selected) accent.copy(alpha = 0.5f) else PeachColors.T3,182+ if (selected) accent.copy(alpha = 0.5f) else peachColors.T3,183183 RoundedCornerShape(PeachRadius.TypeTab),184184 )185185 .background(if (selected) accent.copy(alpha = 0.08f) else Color.Transparent)@@ -188,7 +188,7 @@188188 ) {189189 Text(190190 text = type.uppercase(),191- color = if (selected) accent else PeachColors.T2,191+ color = if (selected) accent else peachColors.T2,192192 fontFamily = PeachType.Mono,193193 fontSize = 9.sp,194194 letterSpacing = 0.08.em,@@ -207,19 +207,19 @@207207 ) {208208 val accent = LocalPeachAccent.current209209 Column(Modifier.fillMaxWidth().padding(bottom = 14.dp)) {210- Text(label.uppercase(), color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)210+ Text(label.uppercase(), color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)211211 Spacer(Modifier.height(6.dp))212212 Row(verticalAlignment = Alignment.CenterVertically) {213213 Box(214214 Modifier.weight(1f)215- .border(1.dp, PeachColors.T3, RoundedCornerShape(10.dp))215+ .border(1.dp, peachColors.T3, RoundedCornerShape(10.dp))216216 .padding(horizontal = 12.dp, vertical = 12.dp),217217 ) {218218 BasicTextField(219219 value = value,220220 onValueChange = onChange,221221 singleLine = singleLine,222- textStyle = TextStyle(color = PeachColors.T0, fontFamily = PeachType.Mono, fontSize = 13.sp),222+ textStyle = TextStyle(color = peachColors.T0, fontFamily = PeachType.Mono, fontSize = 13.sp),223223 cursorBrush = SolidColor(accent),224224 visualTransformation = transformation,225225 modifier = Modifier.fillMaxWidth(),@@ -273,7 +273,7 @@273273 )274274 Box(275275 Modifier.fillMaxWidth().height(height).clipToBounds()276- .clip(RoundedCornerShape(12.dp)).background(PeachColors.S2),276+ .clip(RoundedCornerShape(12.dp)).background(peachColors.S2),277277 ) {278278 GeneratorBody(279279 length = length,@@ -306,7 +306,7 @@306306 val accent = LocalPeachAccent.current307307 Column(Modifier.fillMaxWidth().padding(16.dp)) {308308 Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceBetween) {309- Text("GENERATOR", color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)309+ Text("GENERATOR", color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)310310 Text("length $length", color = accent, fontFamily = PeachType.Mono, fontSize = 9.sp)311311 }312312 Slider(@@ -314,7 +314,7 @@314314 onValueChange = { onLength(it.toInt()) },315315 valueRange = 8f..128f,316316 colors = SliderDefaults.colors(317- thumbColor = accent, activeTrackColor = accent, inactiveTrackColor = PeachColors.T3,317+ thumbColor = accent, activeTrackColor = accent, inactiveTrackColor = peachColors.T3,318318 ),319319 )320320 Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) {@@ -345,12 +345,12 @@345345 val accent = LocalPeachAccent.current346346 Box(347347 Modifier.clip(RoundedCornerShape(PeachRadius.TypeTab))348- .border(1.dp, if (on) accent.copy(alpha = 0.5f) else PeachColors.T3, RoundedCornerShape(PeachRadius.TypeTab))348+ .border(1.dp, if (on) accent.copy(alpha = 0.5f) else peachColors.T3, RoundedCornerShape(PeachRadius.TypeTab))349349 .background(if (on) accent.copy(alpha = 0.10f) else Color.Transparent)350350 .clickable { onToggle(!on) }351351 .padding(horizontal = 10.dp, vertical = 6.dp),352352 ) {353- Text(label, color = if (on) accent else PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)353+ Text(label, color = if (on) accent else peachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)354354 }355355 }356356 app/src/main/java/com/peachpasswords/ui/vault/ExportScreen.kt+26 −26
@@ -48,7 +48,7 @@4848 import androidx.hilt.navigation.compose.hiltViewModel4949 import androidx.lifecycle.ViewModel5050 import com.peachpasswords.ui.theme.LocalPeachAccent51-import com.peachpasswords.ui.theme.PeachColors51+import com.peachpasswords.ui.theme.peachColors5252 import com.peachpasswords.ui.theme.PeachType5353 import com.peachpasswords.ui.security.StrengthBar5454 import com.peachpasswords.ui.security.scorePassword@@ -143,7 +143,7 @@143143 Icon(144144 Icons.AutoMirrored.Rounded.ArrowBack,145145 contentDescription = "back",146- tint = PeachColors.T0,146+ tint = peachColors.T0,147147 modifier = Modifier148148 .size(22.dp)149149 .clip(RoundedCornerShape(8.dp))@@ -154,7 +154,7 @@154154 Spacer(Modifier.width(14.dp))155155 Text(156156 "Export",157- color = PeachColors.T0,157+ color = peachColors.T0,158158 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp),159159 )160160 }@@ -198,18 +198,18 @@198198 modifier = Modifier199199 .fillMaxWidth()200200 .clip(RoundedCornerShape(18.dp))201- .background(PeachColors.SurfaceElevated)202- .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))201+ .background(peachColors.SurfaceElevated)202+ .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))203203 .clickable(onClick = onClick)204204 .padding(20.dp),205205 ) {206206 Text(207207 title,208- color = PeachColors.T0,208+ color = peachColors.T0,209209 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp),210210 )211211 Spacer(Modifier.size(6.dp))212- Text(subtitle, color = PeachColors.T1, style = PeachType.body)212+ Text(subtitle, color = peachColors.T1, style = PeachType.body)213213 }214214 }215215 @@ -245,7 +245,7 @@245245 GlassCard {246246 Text(247247 "create a\nbackup.",248- color = PeachColors.T0,248+ color = peachColors.T0,249249 style = TextStyle(250250 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic,251251 fontSize = 24.sp, lineHeight = 26.sp,@@ -254,7 +254,7 @@254254 Spacer(Modifier.size(10.dp))255255 Text(256256 "Your vault will be encrypted with a separate backup password.",257- color = PeachColors.T1, style = PeachType.body,257+ color = peachColors.T1, style = PeachType.body,258258 )259259 260260 if (isEmpty) {@@ -278,18 +278,18 @@278278 Row(modifier = Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically) {279279 Text(280280 "strength: ${strengthLabel(score)}",281- color = if (strongEnough) accent else PeachColors.T2,281+ color = if (strongEnough) accent else peachColors.T2,282282 style = PeachType.labelMono,283283 )284284 }285285 286286 if (password.isNotEmpty() && !strongEnough) {287287 Spacer(Modifier.size(8.dp))288- Text(ExportStrings.WEAK_PASSWORD, color = PeachColors.Breach, style = PeachType.bodyMono)288+ Text(ExportStrings.WEAK_PASSWORD, color = peachColors.Breach, style = PeachType.bodyMono)289289 }290290 if (confirm.isNotEmpty() && !matches) {291291 Spacer(Modifier.size(8.dp))292- Text(ExportStrings.MISMATCH, color = PeachColors.Breach, style = PeachType.bodyMono)292+ Text(ExportStrings.MISMATCH, color = peachColors.Breach, style = PeachType.bodyMono)293293 }294294 }295295 @@ -312,14 +312,14 @@312312 status = ExportStrings.COPIED313313 }314314 Spacer(Modifier.size(8.dp))315- GhostButton("Save to file", PeachColors.T1) {315+ GhostButton("Save to file", peachColors.T1) {316316 saveLauncher.launch("peach-backup.peach")317317 }318318 status?.let {319319 Spacer(Modifier.size(12.dp))320320 Text(321321 it,322- color = if (it == ExportStrings.SAVE_FAILED) PeachColors.Breach else accent,322+ color = if (it == ExportStrings.SAVE_FAILED) peachColors.Breach else accent,323323 style = PeachType.labelMono,324324 )325325 }@@ -348,7 +348,7 @@348348 WarningCard(accent) {349349 Text(350350 "⚠ CSV exports are not encrypted. Store this file securely and delete it after importing.",351- color = PeachColors.T0, style = PeachType.body,351+ color = peachColors.T0, style = PeachType.body,352352 )353353 Spacer(Modifier.size(16.dp))354354 CheckboxRow(@@ -374,7 +374,7 @@374374 Spacer(Modifier.size(12.dp))375375 Text(376376 it,377- color = if (it == ExportStrings.SAVE_FAILED) PeachColors.Breach else accent,377+ color = if (it == ExportStrings.SAVE_FAILED) peachColors.Breach else accent,378378 style = PeachType.labelMono,379379 )380380 }@@ -404,13 +404,13 @@404404 .size(18.dp)405405 .clip(RoundedCornerShape(5.dp))406406 .background(if (checked) accent else Color.Transparent)407- .border(1.5.dp, if (checked) accent else PeachColors.T2, RoundedCornerShape(5.dp)),407+ .border(1.5.dp, if (checked) accent else peachColors.T2, RoundedCornerShape(5.dp)),408408 contentAlignment = Alignment.Center,409409 ) {410410 if (checked) Text("✓", color = Color(0xFF0C0A06), style = PeachType.tinyMono.copy(fontSize = 12.sp))411411 }412412 Spacer(Modifier.width(12.dp))413- Text(label, color = PeachColors.T0, style = PeachType.body)413+ Text(label, color = peachColors.T0, style = PeachType.body)414414 }415415 }416416 @@ -422,17 +422,17 @@422422 modifier = Modifier423423 .fillMaxWidth()424424 .clip(RoundedCornerShape(12.dp))425- .background(PeachColors.BreachBg)426- .border(1.dp, PeachColors.BreachBorder, RoundedCornerShape(12.dp))425+ .background(peachColors.BreachBg)426+ .border(1.dp, peachColors.BreachBorder, RoundedCornerShape(12.dp))427427 .padding(14.dp),428428 ) {429- Text(message, color = PeachColors.Breach, style = PeachType.bodyMono)429+ Text(message, color = peachColors.Breach, style = PeachType.bodyMono)430430 }431431 }432432 433433 @Composable434434 private fun FieldLabel(text: String) {435- Text(text.uppercase(), color = PeachColors.T2, style = PeachType.labelMono)435+ Text(text.uppercase(), color = peachColors.T2, style = PeachType.labelMono)436436 }437437 438438 @Composable@@ -447,12 +447,12 @@447447 value = value,448448 onValueChange = onValueChange,449449 singleLine = true,450- textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),450+ textStyle = PeachType.bodyMono.copy(color = peachColors.T0),451451 cursorBrush = SolidColor(accent),452452 visualTransformation = if (isPassword) PasswordVisualTransformation() else VisualTransformation.None,453453 modifier = Modifier.fillMaxWidth().padding(vertical = 6.dp),454454 )455- Box(Modifier.fillMaxWidth().height(1.dp).background(PeachColors.T3))455+ Box(Modifier.fillMaxWidth().height(1.dp).background(peachColors.T3))456456 }457457 }458458 @@ -462,8 +462,8 @@462462 modifier = Modifier463463 .fillMaxWidth()464464 .clip(RoundedCornerShape(18.dp))465- .background(PeachColors.SurfaceElevated)466- .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))465+ .background(peachColors.SurfaceElevated)466+ .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))467467 .padding(20.dp),468468 content = { content() },469469 )app/src/main/java/com/peachpasswords/ui/vault/IdentitySuggestDropdown.kt+7 −7
@@ -27,7 +27,7 @@2727 import androidx.compose.ui.unit.sp2828 import androidx.compose.ui.window.PopupProperties2929 import com.peachpasswords.ui.theme.LocalPeachAccent30-import com.peachpasswords.ui.theme.PeachColors30+import com.peachpasswords.ui.theme.peachColors3131 import com.peachpasswords.ui.theme.PeachType3232 3333 /**@@ -55,8 +55,8 @@5555 onDismissRequest = onDismiss,5656 properties = PopupProperties(focusable = false),5757 modifier = Modifier58- .background(PeachColors.S2)59- .border(1.dp, PeachColors.T3, RoundedCornerShape(10.dp))58+ .background(peachColors.S2)59+ .border(1.dp, peachColors.T3, RoundedCornerShape(10.dp))6060 .clip(RoundedCornerShape(10.dp)),6161 ) {6262 suggestions.forEach { suggestion ->@@ -65,7 +65,7 @@6565 Text(6666 suggestion,6767 style = TextStyle(68- color = PeachColors.T1,68+ color = peachColors.T1,6969 fontFamily = PeachType.Mono,7070 fontSize = 11.sp,7171 ),@@ -102,18 +102,18 @@102102 var focused by remember { mutableStateOf(false) }103103 104104 Column(Modifier.fillMaxWidth().padding(bottom = 14.dp)) {105- Text(label.uppercase(), color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)105+ Text(label.uppercase(), color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)106106 Spacer(Modifier.height(6.dp))107107 Box(108108 Modifier.fillMaxWidth()109- .border(1.dp, PeachColors.T3, RoundedCornerShape(10.dp))109+ .border(1.dp, peachColors.T3, RoundedCornerShape(10.dp))110110 .padding(horizontal = 12.dp, vertical = 12.dp),111111 ) {112112 BasicTextField(113113 value = value,114114 onValueChange = onChange,115115 singleLine = true,116- textStyle = TextStyle(color = PeachColors.T0, fontFamily = PeachType.Mono, fontSize = 13.sp),116+ textStyle = TextStyle(color = peachColors.T0, fontFamily = PeachType.Mono, fontSize = 13.sp),117117 cursorBrush = SolidColor(accent),118118 modifier = Modifier119119 .fillMaxWidth()app/src/main/java/com/peachpasswords/ui/vault/ImportScreen.kt+31 −31
@@ -47,7 +47,7 @@4747 import androidx.lifecycle.ViewModel4848 import androidx.lifecycle.viewModelScope4949 import com.peachpasswords.ui.theme.LocalPeachAccent50-import com.peachpasswords.ui.theme.PeachColors50+import com.peachpasswords.ui.theme.peachColors5151 import com.peachpasswords.ui.theme.PeachType5252 import com.peachpasswords.ui.theme.ShellBackground5353 import com.peachpasswords.vault.VaultEntry@@ -257,7 +257,7 @@257257 Icon(258258 Icons.AutoMirrored.Rounded.ArrowBack,259259 contentDescription = "back",260- tint = PeachColors.T0,260+ tint = peachColors.T0,261261 modifier = Modifier262262 .size(22.dp)263263 .clip(RoundedCornerShape(8.dp))@@ -272,7 +272,7 @@272272 Spacer(Modifier.width(14.dp))273273 Text(274274 "Import",275- color = PeachColors.T0,275+ color = peachColors.T0,276276 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp),277277 )278278 }@@ -337,18 +337,18 @@337337 modifier = Modifier338338 .fillMaxWidth()339339 .clip(RoundedCornerShape(18.dp))340- .background(PeachColors.SurfaceElevated)341- .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))340+ .background(peachColors.SurfaceElevated)341+ .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))342342 .clickable(onClick = onClick)343343 .padding(20.dp),344344 ) {345345 Text(346346 title,347- color = PeachColors.T0,347+ color = peachColors.T0,348348 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp),349349 )350350 Spacer(Modifier.size(6.dp))351- Text(subtitle, color = PeachColors.T1, style = PeachType.body)351+ Text(subtitle, color = peachColors.T1, style = PeachType.body)352352 }353353 }354354 @@ -399,13 +399,13 @@399399 GlassCard {400400 Text(401401 "Import from a CSV or JSON export",402- color = PeachColors.T1,402+ color = peachColors.T1,403403 style = PeachType.body,404404 )405405 Spacer(Modifier.size(6.dp))406406 Text(407407 "Supports Bitwarden, 1Password, Chrome/Edge, and Safari exports.",408- color = PeachColors.T2,408+ color = peachColors.T2,409409 style = PeachType.hint,410410 )411411 Spacer(Modifier.size(16.dp))@@ -445,7 +445,7 @@445445 Spacer(Modifier.size(10.dp))446446 Text(447447 "Found ${preview.entries.size} ${if (preview.entries.size == 1) "entry" else "entries"}",448- color = PeachColors.T0,448+ color = peachColors.T0,449449 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp),450450 )451451 Spacer(Modifier.size(12.dp))@@ -459,7 +459,7 @@459459 preview.entries.take(5).forEach { e ->460460 Text(461461 e.title,462- color = PeachColors.T1,462+ color = peachColors.T1,463463 style = PeachType.entryNameList,464464 modifier = Modifier.padding(vertical = 4.dp),465465 )@@ -467,7 +467,7 @@467467 if (preview.entries.size > 5) {468468 Text(469469 "+${preview.entries.size - 5} more",470- color = PeachColors.T2,470+ color = peachColors.T2,471471 style = PeachType.tinyMono,472472 modifier = Modifier.padding(top = 4.dp),473473 )@@ -481,7 +481,7 @@481481 Spacer(Modifier.size(18.dp))482482 AccentButton(label = "Confirm Import", onClick = { onConfirm(mode) })483483 Spacer(Modifier.size(8.dp))484- GhostButton("Cancel", PeachColors.T1, onCancel)484+ GhostButton("Cancel", peachColors.T1, onCancel)485485 }486486 487487 @Composable@@ -495,7 +495,7 @@495495 modifier = Modifier496496 .size(16.dp)497497 .clip(RoundedCornerShape(999.dp))498- .border(1.5.dp, if (selected) accent else PeachColors.T2, RoundedCornerShape(999.dp)),498+ .border(1.5.dp, if (selected) accent else peachColors.T2, RoundedCornerShape(999.dp)),499499 contentAlignment = Alignment.Center,500500 ) {501501 if (selected) {@@ -503,7 +503,7 @@503503 }504504 }505505 Spacer(Modifier.width(12.dp))506- Text(label, color = PeachColors.T0, style = PeachType.body)506+ Text(label, color = peachColors.T0, style = PeachType.body)507507 }508508 }509509 @@ -514,13 +514,13 @@514514 GlassCard {515515 Text(516516 "imported.",517- color = PeachColors.T0,517+ color = peachColors.T0,518518 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 24.sp),519519 )520520 Spacer(Modifier.size(8.dp))521521 Text(522522 "$count ${if (count == 1) "entry" else "entries"} imported.",523- color = PeachColors.T1,523+ color = peachColors.T1,524524 style = PeachType.body,525525 )526526 }@@ -533,7 +533,7 @@533533 Box(Modifier.fillMaxWidth().padding(vertical = 40.dp), contentAlignment = Alignment.Center) {534534 Text(535535 "working…",536- color = PeachColors.T1,536+ color = peachColors.T1,537537 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 18.sp),538538 )539539 }@@ -545,11 +545,11 @@545545 modifier = Modifier546546 .fillMaxWidth()547547 .clip(RoundedCornerShape(12.dp))548- .background(PeachColors.BreachBg)549- .border(1.dp, PeachColors.BreachBorder, RoundedCornerShape(12.dp))548+ .background(peachColors.BreachBg)549+ .border(1.dp, peachColors.BreachBorder, RoundedCornerShape(12.dp))550550 .padding(14.dp),551551 ) {552- Text(message, color = PeachColors.Breach, style = PeachType.bodyMono)552+ Text(message, color = peachColors.Breach, style = PeachType.bodyMono)553553 }554554 }555555 @@ -559,7 +559,7 @@559559 private fun FieldLabel(text: String) {560560 Text(561561 text.uppercase(),562- color = PeachColors.T2,562+ color = peachColors.T2,563563 style = PeachType.labelMono,564564 )565565 }@@ -575,14 +575,14 @@575575 modifier = Modifier576576 .fillMaxWidth()577577 .clip(RoundedCornerShape(12.dp))578- .background(PeachColors.S2)579- .border(1.dp, PeachColors.T3, RoundedCornerShape(12.dp))578+ .background(peachColors.S2)579+ .border(1.dp, peachColors.T3, RoundedCornerShape(12.dp))580580 .padding(14.dp),581581 ) {582582 BasicTextField(583583 value = value,584584 onValueChange = onValueChange,585- textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),585+ textStyle = PeachType.bodyMono.copy(color = peachColors.T0),586586 cursorBrush = SolidColor(accent),587587 minLines = minLines,588588 modifier = Modifier.fillMaxWidth(),@@ -590,7 +590,7 @@590590 if (value.isEmpty()) {591591 Text(592592 "{ \"peachscript\": 1, … }",593- color = PeachColors.T2,593+ color = peachColors.T2,594594 style = PeachType.bodyMono,595595 )596596 }@@ -609,12 +609,12 @@609609 value = value,610610 onValueChange = onValueChange,611611 singleLine = true,612- textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),612+ textStyle = PeachType.bodyMono.copy(color = peachColors.T0),613613 cursorBrush = SolidColor(accent),614614 visualTransformation = if (isPassword) PasswordVisualTransformation() else androidx.compose.ui.text.input.VisualTransformation.None,615615 modifier = Modifier.fillMaxWidth().padding(vertical = 6.dp),616616 )617- Box(Modifier.fillMaxWidth().size(1.dp).background(PeachColors.T3))617+ Box(Modifier.fillMaxWidth().size(1.dp).background(peachColors.T3))618618 }619619 }620620 @@ -624,8 +624,8 @@624624 modifier = Modifier625625 .fillMaxWidth()626626 .clip(RoundedCornerShape(18.dp))627- .background(PeachColors.SurfaceElevated)628- .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))627+ .background(peachColors.SurfaceElevated)628+ .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))629629 .padding(20.dp),630630 content = { content() },631631 )@@ -633,7 +633,7 @@633633 634634 @Composable635635 private fun Divider() {636- Box(Modifier.fillMaxWidth().padding(vertical = 14.dp).size(1.dp).background(PeachColors.T3))636+ Box(Modifier.fillMaxWidth().padding(vertical = 14.dp).size(1.dp).background(peachColors.T3))637637 }638638 639639 @Composableapp/src/main/java/com/peachpasswords/ui/vault/MultiSelectUi.kt+5 −5
@@ -29,7 +29,7 @@2929 import androidx.compose.ui.unit.dp3030 import androidx.compose.ui.unit.sp3131 import com.peachpasswords.ui.theme.LocalPeachAccent32-import com.peachpasswords.ui.theme.PeachColors32+import com.peachpasswords.ui.theme.peachColors3333 import com.peachpasswords.ui.theme.PeachType3434 3535 /**@@ -50,7 +50,7 @@5050 .background(fill)5151 .then(5252 if (checked) Modifier53- else Modifier.border(1.dp, PeachColors.T2, CircleShape),53+ else Modifier.border(1.dp, peachColors.T2, CircleShape),5454 ),5555 contentAlignment = Alignment.Center,5656 ) {@@ -87,13 +87,13 @@8787 ) {8888 Text(8989 text = "$count selected",90- color = PeachColors.T0,90+ color = peachColors.T0,9191 style = PeachType.bodyMono.copy(fontSize = 13.sp),9292 )9393 Row(verticalAlignment = Alignment.CenterVertically) {9494 Text(9595 text = "Delete",96- color = if (count > 0) PeachColors.Breach else PeachColors.T2,96+ color = if (count > 0) peachColors.Breach else peachColors.T2,9797 style = PeachType.labelMono.copy(fontSize = 11.sp),9898 modifier = Modifier9999 .clip(RoundedCornerShape(4.dp))@@ -103,7 +103,7 @@103103 Spacer(Modifier.width(8.dp))104104 Text(105105 text = "Cancel",106- color = PeachColors.T2,106+ color = peachColors.T2,107107 style = PeachType.labelMono.copy(fontSize = 11.sp),108108 modifier = Modifier109109 .clip(RoundedCornerShape(4.dp))app/src/main/java/com/peachpasswords/ui/vault/NotesModeScreen.kt+10 −10
@@ -51,7 +51,7 @@5151 import androidx.fragment.app.FragmentActivity5252 import androidx.hilt.navigation.compose.hiltViewModel5353 import com.peachpasswords.ui.theme.LocalPeachAccent54-import com.peachpasswords.ui.theme.PeachColors54+import com.peachpasswords.ui.theme.peachColors5555 import com.peachpasswords.ui.theme.PeachType5656 import com.peachpasswords.ui.theme.ShellBackground5757 @@ -109,7 +109,7 @@109109 verticalAlignment = Alignment.CenterVertically,110110 ) {111111 Icon(112- Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "back", tint = PeachColors.T0,112+ Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "back", tint = peachColors.T0,113113 modifier = Modifier.size(40.dp).clip(CircleShape)114114 .clickable { vm.saveTitleNow(title); onBack() }.padding(8.dp),115115 )@@ -117,7 +117,7 @@117117 if (title.isEmpty()) {118118 Text(119119 "untitled note",120- color = PeachColors.T2,120+ color = peachColors.T2,121121 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp),122122 )123123 }@@ -126,7 +126,7 @@126126 onValueChange = { title = it; vm.onTitleChanged(it) },127127 singleLine = true,128128 textStyle = TextStyle(129- color = PeachColors.T0,129+ color = peachColors.T0,130130 fontFamily = PeachType.Display,131131 fontStyle = FontStyle.Italic,132132 fontSize = 22.sp,@@ -137,7 +137,7 @@137137 }138138 Text(139139 "saved.",140- color = PeachColors.T2,140+ color = peachColors.T2,141141 style = TextStyle(fontFamily = PeachType.Mono, fontSize = 9.sp),142142 modifier = Modifier.padding(end = 8.dp).alpha(savedAlpha),143143 )@@ -145,7 +145,7 @@145145 146146 if (e == null) {147147 Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {148- Text("note not found", color = PeachColors.T1, style = PeachType.bodyMono)148+ Text("note not found", color = peachColors.T1, style = PeachType.bodyMono)149149 }150150 return@Column151151 }@@ -166,14 +166,14 @@166166 if (body.text.isEmpty()) {167167 Text(168168 "Start writing…",169- color = PeachColors.T2,169+ color = peachColors.T2,170170 style = TextStyle(fontFamily = PeachType.Body, fontStyle = FontStyle.Italic, fontSize = 14.sp),171171 )172172 }173173 BasicTextField(174174 value = body,175175 onValueChange = { body = it; vm.onContentChanged(it.text) },176- textStyle = TextStyle(color = PeachColors.T0, fontFamily = PeachType.Body, fontSize = 14.sp, lineHeight = 22.sp),176+ textStyle = TextStyle(color = peachColors.T0, fontFamily = PeachType.Body, fontSize = 14.sp, lineHeight = 22.sp),177177 cursorBrush = SolidColor(accent),178178 modifier = Modifier.fillMaxSize(),179179 )@@ -212,13 +212,13 @@212212 Modifier213213 .size(30.dp)214214 .clip(RoundedCornerShape(6.dp))215- .background(PeachColors.S2)215+ .background(peachColors.S2)216216 .clickable(onClick = onClick),217217 contentAlignment = Alignment.Center,218218 ) {219219 Text(220220 label,221- color = PeachColors.T0,221+ color = peachColors.T0,222222 style = TextStyle(223223 fontFamily = PeachType.Body,224224 fontSize = 14.sp,app/src/main/java/com/peachpasswords/ui/vault/PasswordHistorySection.kt+3 −3
@@ -26,7 +26,7 @@2626 import androidx.compose.ui.unit.dp2727 import androidx.compose.ui.unit.sp2828 import com.peachpasswords.ui.theme.LocalPeachAccent29-import com.peachpasswords.ui.theme.PeachColors29+import com.peachpasswords.ui.theme.peachColors3030 import com.peachpasswords.ui.theme.PeachType3131 import com.peachpasswords.vault.PasswordHistoryItem3232 @@ -101,7 +101,7 @@101101 ) {102102 Text(103103 "No earlier passwords yet. When you change this password, the old one is saved here so you can copy or restore it.",104- color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp,104+ color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 10.sp,105105 )106106 }107107 } else {@@ -129,7 +129,7 @@129129 Column(Modifier.weight(1f)) {130130 Text(131131 if (revealed) item.password else "••••••••••••",132- color = PeachColors.T0, fontFamily = PeachType.Mono, fontSize = 12.sp, maxLines = 1,132+ color = peachColors.T0, fontFamily = PeachType.Mono, fontSize = 12.sp, maxLines = 1,133133 )134134 Text(135135 timeSince(item.changedAt),app/src/main/java/com/peachpasswords/ui/vault/RecoveryWordsScreen.kt+16 −16
@@ -46,7 +46,7 @@4646 import androidx.lifecycle.ViewModel4747 import androidx.lifecycle.viewModelScope4848 import com.peachpasswords.ui.theme.LocalPeachAccent49-import com.peachpasswords.ui.theme.PeachColors49+import com.peachpasswords.ui.theme.peachColors5050 import com.peachpasswords.ui.theme.PeachType5151 import com.peachpasswords.ui.theme.ShellBackground5252 import com.peachpasswords.vault.VaultCrypto@@ -99,7 +99,7 @@9999 ) {100100 Text(101101 "recovery words",102- color = PeachColors.T1,102+ color = peachColors.T1,103103 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 18.sp),104104 textAlign = TextAlign.Center,105105 modifier = Modifier.fillMaxWidth(),@@ -139,13 +139,13 @@139139 GlassCard {140140 Text(141141 "keep these\nsafe.",142- color = PeachColors.T0,142+ color = peachColors.T0,143143 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 24.sp, lineHeight = 26.sp),144144 )145145 Divider()146146 Text(147147 "These 12 words can restore your vault if you forget your master password. Write them down somewhere safe.",148- color = PeachColors.T1, style = PeachType.body,148+ color = peachColors.T1, style = PeachType.body,149149 )150150 Spacer(Modifier.size(16.dp))151151 // 12-word grid, two columns.@@ -167,7 +167,7 @@167167 cm.setPrimaryClip(ClipData.newPlainText("peach recovery", joined))168168 }169169 Spacer(Modifier.size(8.dp))170- GhostButton("save as text file", PeachColors.T1) { saveLauncher.launch("peach-recovery.txt") }170+ GhostButton("save as text file", peachColors.T1) { saveLauncher.launch("peach-recovery.txt") }171171 }172172 173173 Spacer(Modifier.size(18.dp))@@ -179,7 +179,7 @@179179 if (remaining > 0) {180180 Text(181181 "continue in ${remaining}s",182- color = PeachColors.T2, style = PeachType.tinyMono.copy(fontSize = 9.sp),182+ color = peachColors.T2, style = PeachType.tinyMono.copy(fontSize = 9.sp),183183 textAlign = TextAlign.Center, modifier = Modifier.fillMaxWidth(),184184 )185185 } else {@@ -201,26 +201,26 @@201201 GlassCard {202202 Text(203203 "let's check.",204- color = PeachColors.T0,204+ color = peachColors.T0,205205 style = TextStyle(fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 24.sp),206206 )207207 Divider()208- Text("Enter the words at positions 3, 7, and 11.", color = PeachColors.T1, style = PeachType.body)208+ Text("Enter the words at positions 3, 7, and 11.", color = peachColors.T1, style = PeachType.body)209209 Spacer(Modifier.size(14.dp))210210 positions.forEachIndexed { i, pos ->211211 val ok = correct(i)212212 val tint = when {213- inputs[i].isBlank() -> PeachColors.T2213+ inputs[i].isBlank() -> peachColors.T2214214 ok -> accent215- else -> PeachColors.Breach215+ else -> peachColors.Breach216216 }217- Text("Word #$pos", color = PeachColors.T2, style = PeachType.labelMono, modifier = Modifier.padding(top = 12.dp))217+ Text("Word #$pos", color = peachColors.T2, style = PeachType.labelMono, modifier = Modifier.padding(top = 12.dp))218218 Row(verticalAlignment = Alignment.CenterVertically) {219219 BasicTextField(220220 value = inputs[i],221221 onValueChange = { inputs[i] = it },222222 singleLine = true,223- textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),223+ textStyle = PeachType.bodyMono.copy(color = peachColors.T0),224224 cursorBrush = SolidColor(accent),225225 modifier = Modifier.weight(1f),226226 )@@ -242,7 +242,7 @@242242 style = PeachType.recoveryNumeral,243243 modifier = Modifier.width(28.dp),244244 )245- Text(word, color = PeachColors.T0, style = PeachType.recoveryWord)245+ Text(word, color = peachColors.T0, style = PeachType.recoveryWord)246246 }247247 }248248 @@ -252,8 +252,8 @@252252 modifier = Modifier253253 .fillMaxWidth()254254 .clip(RoundedCornerShape(18.dp))255- .background(PeachColors.SurfaceElevated)256- .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))255+ .background(peachColors.SurfaceElevated)256+ .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))257257 .padding(20.dp),258258 content = { content() },259259 )@@ -261,7 +261,7 @@261261 262262 @Composable263263 private fun Divider() {264- Box(Modifier.fillMaxWidth().padding(vertical = 14.dp).size(1.dp).background(PeachColors.T3))264+ Box(Modifier.fillMaxWidth().padding(vertical = 14.dp).size(1.dp).background(peachColors.T3))265265 }266266 267267 @Composableapp/src/main/java/com/peachpasswords/ui/vault/TagChipEditor.kt+7 −7
@@ -34,7 +34,7 @@3434 import androidx.compose.ui.unit.dp3535 import androidx.compose.ui.unit.sp3636 import com.peachpasswords.ui.theme.LocalPeachAccent37-import com.peachpasswords.ui.theme.PeachColors37+import com.peachpasswords.ui.theme.peachColors3838 import com.peachpasswords.ui.theme.PeachType3939 4040 /** Max tags per entry. */@@ -83,7 +83,7 @@8383 }8484 8585 Column(Modifier.fillMaxWidth().padding(bottom = 14.dp)) {86- Text("TAGS", color = PeachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)86+ Text("TAGS", color = peachColors.T1, fontFamily = PeachType.Mono, fontSize = 8.sp)8787 Spacer(Modifier.height(6.dp))8888 8989 FlowRow(@@ -98,12 +98,12 @@9898 Box(9999 Modifier100100 .widthIn(min = 90.dp)101- .border(1.dp, PeachColors.T3, RoundedCornerShape(6.dp))101+ .border(1.dp, peachColors.T3, RoundedCornerShape(6.dp))102102 .padding(horizontal = 10.dp, vertical = 6.dp),103103 contentAlignment = Alignment.CenterStart,104104 ) {105105 if (draft.isEmpty()) {106- Text("add a tag…", color = PeachColors.T2, style = PeachType.bodyMono)106+ Text("add a tag…", color = peachColors.T2, style = PeachType.bodyMono)107107 }108108 BasicTextField(109109 value = draft,@@ -118,7 +118,7 @@118118 }119119 },120120 singleLine = true,121- textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),121+ textStyle = PeachType.bodyMono.copy(color = peachColors.T0),122122 cursorBrush = SolidColor(accent),123123 keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done),124124 keyboardActions = KeyboardActions(onDone = { commit(draft) }),@@ -129,14 +129,14 @@129129 130130 if (atLimit) {131131 Spacer(Modifier.height(6.dp))132- Text("Max $MAX_TAGS tags", color = PeachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)132+ Text("Max $MAX_TAGS tags", color = peachColors.T2, fontFamily = PeachType.Mono, fontSize = 9.sp)133133 } else if (suggestions.isNotEmpty()) {134134 Spacer(Modifier.height(8.dp))135135 Column(Modifier.fillMaxWidth()) {136136 suggestions.forEach { s ->137137 Text(138138 s,139- color = PeachColors.T1,139+ color = peachColors.T1,140140 style = TextStyle(fontFamily = PeachType.Mono, fontSize = 11.sp),141141 modifier = Modifier142142 .fillMaxWidth()app/src/main/java/com/peachpasswords/ui/vault/TagListWidgets.kt+5 −5
@@ -17,7 +17,7 @@1717 import androidx.compose.ui.graphics.Color1818 import androidx.compose.ui.unit.dp1919 import com.peachpasswords.ui.theme.LocalPeachAccent20-import com.peachpasswords.ui.theme.PeachColors20+import com.peachpasswords.ui.theme.peachColors2121 import com.peachpasswords.ui.theme.PeachType2222 2323 /**@@ -40,14 +40,14 @@4040 val selected = activeTagFilter == tag4141 Text(4242 text = tag.uppercase(),43- color = if (selected) accent else PeachColors.T2,43+ color = if (selected) accent else peachColors.T2,4444 style = PeachType.sortPill,4545 modifier = Modifier4646 .clip(RoundedCornerShape(4.dp))4747 .background(if (selected) accent.copy(alpha = 0.18f) else Color.Transparent)4848 .border(4949 1.dp,50- if (selected) accent else PeachColors.T3,50+ if (selected) accent else peachColors.T3,5151 RoundedCornerShape(4.dp),5252 )5353 // Toggle off when re-tapping the active tag.@@ -84,11 +84,11 @@8484 if (extra > 0) {8585 Text(8686 text = "+$extra more",87- color = PeachColors.T2,87+ color = peachColors.T2,8888 style = PeachType.tinyMono,8989 modifier = Modifier9090 .clip(RoundedCornerShape(4.dp))91- .border(0.5.dp, PeachColors.T3, RoundedCornerShape(4.dp))91+ .border(0.5.dp, peachColors.T3, RoundedCornerShape(4.dp))9292 .padding(horizontal = 5.dp, vertical = 1.dp),9393 )9494 }app/src/main/java/com/peachpasswords/ui/vault/TotpInlineEdit.kt+7 −7
@@ -71,7 +71,7 @@7171 import com.peachpasswords.ui.components.TOTPRing7272 import com.peachpasswords.ui.theme.LocalPeachAccent7373 import com.peachpasswords.ui.theme.LocalReduceMotion74-import com.peachpasswords.ui.theme.PeachColors74+import com.peachpasswords.ui.theme.peachColors7575 import com.peachpasswords.ui.theme.PeachType7676 import com.peachpasswords.vault.TOTPGenerator7777 @@ -184,7 +184,7 @@184184 Icon(185185 Icons.Outlined.Edit,186186 contentDescription = "edit 2FA secret",187- tint = PeachColors.T2,187+ tint = peachColors.T2,188188 modifier = Modifier189189 .size(14.dp)190190 .clip(RoundedCornerShape(4.dp))@@ -194,12 +194,12 @@194194 val spaced = if (code.length == 6) "${code.substring(0, 3)} ${code.substring(3)}" else code195195 Text(196196 spaced,197- color = if (isHot) PeachColors.Breach else accent,197+ color = if (isHot) peachColors.Breach else accent,198198 style = PeachType.totpCode,199199 modifier = Modifier.graphicsLayer { alpha = codeAlpha },200200 )201201 }202- Text("${remaining}s", color = PeachColors.T2, style = PeachType.totpCountdown)202+ Text("${remaining}s", color = peachColors.T2, style = PeachType.totpCountdown)203203 Spacer(Modifier.width(12.dp))204204 TOTPRing(size = 28.dp)205205 Spacer(Modifier.width(8.dp))@@ -243,7 +243,7 @@243243 }244244 if (showError) {245245 Spacer(Modifier.height(6.dp))246- Text("Invalid 2FA secret", color = PeachColors.Breach, style = PeachType.labelMono)246+ Text("Invalid 2FA secret", color = peachColors.Breach, style = PeachType.labelMono)247247 }248248 Spacer(Modifier.height(8.dp))249249 E6SaveCancelRow(@@ -268,7 +268,7 @@268268 value = draft,269269 onValueChange = onDraftChange,270270 singleLine = true,271- textStyle = PeachType.bodyMono.copy(color = PeachColors.T0),271+ textStyle = PeachType.bodyMono.copy(color = peachColors.T0),272272 cursorBrush = SolidColor(accent),273273 visualTransformation = transformation,274274 modifier = modifier@@ -293,7 +293,7 @@293293 modifier = Modifier.clip(RoundedCornerShape(6.dp)).clickable(onClick = onSave).padding(vertical = 4.dp),294294 )295295 Text(296- "✗", color = PeachColors.T2, style = PeachType.labelMono,296+ "✗", color = peachColors.T2, style = PeachType.labelMono,297297 modifier = Modifier.clip(RoundedCornerShape(6.dp)).clickable(onClick = onCancel).padding(horizontal = 6.dp, vertical = 4.dp),298298 )299299 }app/src/main/java/com/peachpasswords/ui/vault/TrashScreen.kt+14 −14
@@ -41,7 +41,7 @@4141 import androidx.lifecycle.viewModelScope4242 import com.peachpasswords.ui.components.FaviconInitials4343 import com.peachpasswords.ui.theme.LocalPeachAccent44-import com.peachpasswords.ui.theme.PeachColors44+import com.peachpasswords.ui.theme.peachColors4545 import com.peachpasswords.ui.theme.PeachType4646 import com.peachpasswords.ui.theme.ShellBackground4747 import com.peachpasswords.vault.VaultEntry@@ -90,13 +90,13 @@9090 // Top bar: back · "Trash" · "Empty trash"9191 Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth()) {9292 Icon(93- Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "back", tint = PeachColors.T0,93+ Icons.AutoMirrored.Rounded.ArrowBack, contentDescription = "back", tint = peachColors.T0,9494 modifier = Modifier.size(22.dp).clip(RoundedCornerShape(8.dp)).clickable(onClick = onBack),9595 )9696 Spacer(Modifier.width(14.dp))9797 Text(9898 "Trash",99- color = PeachColors.T0,99+ color = peachColors.T0,100100 style = PeachType.Display.let {101101 androidx.compose.ui.text.TextStyle(102102 fontFamily = it, fontStyle = FontStyle.Italic, fontSize = 22.sp,@@ -105,7 +105,7 @@105105 )106106 Spacer(Modifier.weight(1f))107107 if (deleted.isNotEmpty()) {108- GhostPill("Empty trash", PeachColors.Breach) { confirmEmptyAll = true }108+ GhostPill("Empty trash", peachColors.Breach) { confirmEmptyAll = true }109109 }110110 }111111 @@ -115,7 +115,7 @@115115 Box(Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {116116 Text(117117 "Trash is empty.",118- color = PeachColors.T1,118+ color = peachColors.T1,119119 style = androidx.compose.ui.text.TextStyle(120120 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 18.sp,121121 ),@@ -135,7 +135,7 @@135135 if (days != null) {136136 Text(137137 "Entries are permanently deleted after $days days",138- color = PeachColors.T2,138+ color = peachColors.T2,139139 style = PeachType.labelMono,140140 textAlign = TextAlign.Center,141141 modifier = Modifier.fillMaxWidth().padding(vertical = 10.dp),@@ -174,18 +174,18 @@174174 Column(Modifier.weight(1f)) {175175 Text(176176 entry.title,177- color = PeachColors.T1,177+ color = peachColors.T1,178178 style = PeachType.entryNameList.copy(textDecoration = TextDecoration.LineThrough),179179 )180180 val domain = entry.domainKey()181181 if (!domain.isNullOrBlank()) {182- Text(domain, color = PeachColors.T2, style = PeachType.tinyMono)182+ Text(domain, color = peachColors.T2, style = PeachType.tinyMono)183183 }184184 }185185 GhostPill("Restore", LocalPeachAccent.current, onRestore)186186 Spacer(Modifier.width(8.dp))187187 Icon(188- Icons.Outlined.DeleteOutline, contentDescription = "delete forever", tint = PeachColors.Breach,188+ Icons.Outlined.DeleteOutline, contentDescription = "delete forever", tint = peachColors.Breach,189189 modifier = Modifier.size(20.dp).clip(RoundedCornerShape(6.dp)).clickable(onClick = onPurge),190190 )191191 }@@ -222,17 +222,17 @@222222 modifier = Modifier223223 .padding(32.dp)224224 .clip(RoundedCornerShape(18.dp))225- .background(PeachColors.S2)226- .border(1.dp, PeachColors.T3, RoundedCornerShape(18.dp))225+ .background(peachColors.S2)226+ .border(1.dp, peachColors.T3, RoundedCornerShape(18.dp))227227 .clickable(enabled = false) {}228228 .padding(22.dp),229229 ) {230- Text(message, color = PeachColors.T0, style = PeachType.body)230+ Text(message, color = peachColors.T0, style = PeachType.body)231231 Spacer(Modifier.size(18.dp))232232 Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.End) {233- GhostPill("Cancel", PeachColors.T1, onCancel)233+ GhostPill("Cancel", peachColors.T1, onCancel)234234 Spacer(Modifier.width(10.dp))235- GhostPill(confirmLabel, PeachColors.Breach, onConfirm)235+ GhostPill(confirmLabel, peachColors.Breach, onConfirm)236236 }237237 }238238 }app/src/main/java/com/peachpasswords/ui/vault/VaultHealthScreen.kt+16 −13
@@ -43,7 +43,7 @@4343 import com.peachpasswords.ui.components.FaviconInitials4444 import com.peachpasswords.ui.components.PeachMark4545 import com.peachpasswords.ui.theme.LocalPeachAccent46-import com.peachpasswords.ui.theme.PeachColors46+import com.peachpasswords.ui.theme.peachColors4747 import com.peachpasswords.ui.theme.PeachType4848 import com.peachpasswords.ui.theme.ShellBackground4949 import com.peachpasswords.vault.VaultEntry@@ -117,13 +117,13 @@117117 Icon(118118 Icons.AutoMirrored.Rounded.ArrowBack,119119 contentDescription = "back",120- tint = PeachColors.T0,120+ tint = peachColors.T0,121121 modifier = Modifier.size(22.dp).clip(RoundedCornerShape(8.dp)).clickable(onClick = onBack),122122 )123123 Spacer(Modifier.width(14.dp))124124 Text(125125 "vault health",126- color = PeachColors.T0,126+ color = peachColors.T0,127127 style = TextStyle(128128 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 22.sp,129129 ),@@ -148,7 +148,7 @@148148 Spacer(Modifier.size(18.dp))149149 Text(150150 "Your vault looks healthy.",151- color = PeachColors.T1,151+ color = peachColors.T1,152152 textAlign = TextAlign.Center,153153 style = TextStyle(154154 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 20.sp,@@ -157,12 +157,14 @@157157 Spacer(Modifier.weight(1f))158158 }159159 } else {160+ val breachColor = peachColors.Breach161+ val dimColor = peachColors.T2160162 LazyColumn(modifier = Modifier.weight(1f)) {161- healthSection("Breached", breached, PeachColors.Breach, expanded, onEditEntry)163+ healthSection("Breached", breached, breachColor, expanded, onEditEntry)162164 healthSection("Reused", reused, Amber, expanded, onEditEntry)163165 healthSection("Weak", weak, Amber, expanded, onEditEntry)164- healthSection("Old", old, PeachColors.T2, expanded, onEditEntry)165- healthSection("No passkey", noPasskey, PeachColors.T2, expanded, onEditEntry)166+ healthSection("Old", old, dimColor, expanded, onEditEntry)167+ healthSection("No passkey", noPasskey, dimColor, expanded, onEditEntry)166168 }167169 }168170 }@@ -210,7 +212,7 @@210212 ) {211213 Text(212214 title,213- color = if (expanded) PeachColors.T0 else PeachColors.T1,215+ color = if (expanded) peachColors.T0 else peachColors.T1,214216 style = TextStyle(215217 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 18.sp,216218 ),@@ -229,10 +231,10 @@229231 FaviconInitials(source = entry.url ?: entry.title, size = 26.dp)230232 Spacer(Modifier.width(12.dp))231233 Column(Modifier.weight(1f)) {232- Text(entry.title, color = PeachColors.T0, style = PeachType.entryNameList)234+ Text(entry.title, color = peachColors.T0, style = PeachType.entryNameList)233235 val domain = entry.domainKey()234236 if (!domain.isNullOrBlank()) {235- Text(domain, color = PeachColors.T2, style = PeachType.tinyMono)237+ Text(domain, color = peachColors.T2, style = PeachType.tinyMono)236238 }237239 }238240 GhostPill("Change password", LocalPeachAccent.current, onChange)@@ -241,6 +243,7 @@241243 242244 @Composable243245 private fun ScoreRing(score: Int, accent: Color) {246+ val track = peachColors.T3244247 Box(Modifier.fillMaxWidth(), contentAlignment = Alignment.Center) {245248 Box(contentAlignment = Alignment.Center) {246249 Canvas(modifier = Modifier.size(100.dp)) {@@ -249,7 +252,7 @@249252 val arcSize = Size(size.width - stroke, size.height - stroke)250253 val topLeft = Offset(inset, inset)251254 drawArc(252- color = PeachColors.T3,255+ color = track,253256 startAngle = -90f,254257 sweepAngle = 360f,255258 useCenter = false,@@ -270,14 +273,14 @@270273 Column(horizontalAlignment = Alignment.CenterHorizontally) {271274 Text(272275 score.toString(),273- color = PeachColors.T0,276+ color = peachColors.T0,274277 style = TextStyle(275278 fontFamily = PeachType.Display, fontStyle = FontStyle.Italic, fontSize = 44.sp,276279 ),277280 )278281 Text(279282 "vault score",280- color = PeachColors.T2,283+ color = peachColors.T2,281284 style = PeachType.labelMono.copy(fontSize = 9.sp),282285 )283286 }app/src/main/java/com/peachpasswords/ui/vault/VaultListScreen.kt+27 −26
@@ -67,7 +67,7 @@6767 import com.peachpasswords.ui.PeachNav6868 import com.peachpasswords.ui.components.FaviconInitials6969 import com.peachpasswords.ui.theme.LocalPeachAccent70-import com.peachpasswords.ui.theme.PeachColors70+import com.peachpasswords.ui.theme.peachColors7171 import com.peachpasswords.ui.theme.PeachType7272 import com.peachpasswords.ui.theme.ShellBackground7373 import com.peachpasswords.vault.TOTPGenerator@@ -177,8 +177,8 @@177177 modifier = Modifier.align(Alignment.BottomCenter).navigationBarsPadding(),178178 ) { data ->179179 Snackbar(180- containerColor = PeachColors.SurfaceElevated,181- contentColor = PeachColors.T0,180+ containerColor = peachColors.SurfaceElevated,181+ contentColor = peachColors.T0,182182 actionContentColor = LocalPeachAccent.current,183183 snackbarData = data,184184 )@@ -216,14 +216,14 @@216216 Row(verticalAlignment = Alignment.CenterVertically) {217217 // Sync dot: no paired device yet, so it reads offline (t2), never a218218 // bright stand-in green. Wire to live sync status once pairing lands.219- Box(Modifier.size(6.dp).clip(CircleShape).background(PeachColors.T2))219+ Box(Modifier.size(6.dp).clip(CircleShape).background(peachColors.T2))220220 Spacer(Modifier.width(10.dp))221221 Icon(222- Icons.Rounded.Add, contentDescription = "new entry", tint = PeachColors.T0,222+ Icons.Rounded.Add, contentDescription = "new entry", tint = peachColors.T0,223223 modifier = Modifier.size(40.dp).clip(CircleShape).clickable(onClick = onAdd).padding(8.dp),224224 )225225 Icon(226- Icons.Rounded.Settings, contentDescription = "settings", tint = PeachColors.T0,226+ Icons.Rounded.Settings, contentDescription = "settings", tint = peachColors.T0,227227 modifier = Modifier.size(40.dp).clip(CircleShape).clickable(onClick = onSettings).padding(8.dp),228228 )229229 }@@ -252,27 +252,27 @@252252 .fillMaxWidth()253253 .padding(horizontal = 16.dp, vertical = 10.dp)254254 .clip(RoundedCornerShape(12.dp))255- .background(PeachColors.S2)256- .border(1.dp, PeachColors.T3, RoundedCornerShape(12.dp))255+ .background(peachColors.S2)256+ .border(1.dp, peachColors.T3, RoundedCornerShape(12.dp))257257 .padding(horizontal = 12.dp, vertical = 8.dp),258258 verticalAlignment = Alignment.CenterVertically,259259 ) {260- Icon(Icons.Rounded.Search, contentDescription = null, tint = PeachColors.T2, modifier = Modifier.size(14.dp))260+ Icon(Icons.Rounded.Search, contentDescription = null, tint = peachColors.T2, modifier = Modifier.size(14.dp))261261 Spacer(Modifier.width(10.dp))262262 Box(Modifier.weight(1f)) {263263 if (value.isEmpty()) {264- Text("search vault…", color = PeachColors.T2, style = PeachType.searchInput)264+ Text("search vault…", color = peachColors.T2, style = PeachType.searchInput)265265 }266266 BasicTextField(267267 value = value,268268 onValueChange = onChange,269269 singleLine = true,270- textStyle = PeachType.searchInput.copy(color = PeachColors.T0),270+ textStyle = PeachType.searchInput.copy(color = peachColors.T0),271271 cursorBrush = SolidColor(accent),272272 modifier = Modifier.fillMaxWidth(),273273 )274274 }275- Text(count, color = PeachColors.T2, style = PeachType.tinyMono)275+ Text(count, color = peachColors.T2, style = PeachType.tinyMono)276276 }277277 }278278 }@@ -287,12 +287,13 @@287287 onTrash: () -> Unit,288288 ) {289289 val accent = LocalPeachAccent.current290+ val hairline = peachColors.T3290291 Row(291292 modifier = Modifier292293 .fillMaxWidth()293294 .drawBehind {294295 drawRect(295- color = PeachColors.T3,296+ color = hairline,296297 topLeft = Offset(0f, size.height - 1.dp.toPx()),297298 size = Size(size.width, 1.dp.toPx()),298299 )@@ -305,7 +306,7 @@305306 val isActive = order == active306307 Text(307308 text = order.label,308- color = if (isActive) Color.Black else PeachColors.T2,309+ color = if (isActive) Color.Black else peachColors.T2,309310 style = PeachType.sortPill,310311 modifier = Modifier311312 .padding(end = 6.dp)@@ -317,7 +318,7 @@317318 }318319 Text(319320 text = "NOTES",320- color = if (noteOnly) Color.Black else PeachColors.T2,321+ color = if (noteOnly) Color.Black else peachColors.T2,321322 style = PeachType.sortPill,322323 modifier = Modifier323324 .padding(end = 6.dp)@@ -328,11 +329,11 @@328329 )329330 Spacer(Modifier.weight(1f))330331 Icon(331- Icons.Outlined.FavoriteBorder, contentDescription = "health", tint = PeachColors.T1,332+ Icons.Outlined.FavoriteBorder, contentDescription = "health", tint = peachColors.T1,332333 modifier = Modifier.size(34.dp).clip(CircleShape).clickable(onClick = onHealth).padding(8.dp),333334 )334335 Icon(335- Icons.Outlined.DeleteOutline, contentDescription = "trash", tint = PeachColors.T1,336+ Icons.Outlined.DeleteOutline, contentDescription = "trash", tint = peachColors.T1,336337 modifier = Modifier.size(34.dp).clip(CircleShape).clickable(onClick = onTrash).padding(8.dp),337338 )338339 }@@ -356,7 +357,7 @@356357 val rowBg by animateColorAsState(357358 targetValue = when {358359 flashing -> accent.copy(alpha = 0.32f)359- pressed -> PeachColors.T4360+ pressed -> peachColors.T4360361 else -> Color.Transparent361362 },362363 label = "row-bg",@@ -405,14 +406,14 @@405406 Column(Modifier.weight(1f)) {406407 Text(407408 text = entry.title,408- color = PeachColors.T0,409+ color = peachColors.T0,409410 style = PeachType.entryNameList,410411 maxLines = 1,411412 )412413 if (meta.isNotEmpty()) {413414 Text(414415 text = meta,415- color = PeachColors.T2,416+ color = peachColors.T2,416417 style = TextStyle(fontFamily = PeachType.Mono, fontSize = 9.sp),417418 maxLines = 1,418419 )@@ -426,15 +427,15 @@426427 Box(427428 Modifier428429 .clip(RoundedCornerShape(4.dp))429- .background(PeachColors.TotpTag.copy(alpha = 0.14f))430- .border(0.5.dp, PeachColors.TotpTag.copy(alpha = 0.30f), RoundedCornerShape(4.dp))430+ .background(peachColors.TotpTag.copy(alpha = 0.14f))431+ .border(0.5.dp, peachColors.TotpTag.copy(alpha = 0.30f), RoundedCornerShape(4.dp))431432 .padding(horizontal = 6.dp, vertical = 2.dp),432433 ) {433- Text("TOTP", color = PeachColors.TotpTag, style = PeachType.sortPill)434+ Text("TOTP", color = peachColors.TotpTag, style = PeachType.sortPill)434435 }435436 }436437 if ((entry.breach ?: 0) > 0) {437- Box(Modifier.size(6.dp).clip(CircleShape).background(PeachColors.Breach))438+ Box(Modifier.size(6.dp).clip(CircleShape).background(peachColors.Breach))438439 }439440 }440441 }@@ -461,9 +462,9 @@461462 Modifier.fillMaxWidth().padding(top = 80.dp, start = 28.dp, end = 28.dp),462463 horizontalAlignment = Alignment.CenterHorizontally,463464 ) {464- Text("No entries yet", color = PeachColors.T1, style = PeachType.searchInput)465+ Text("No entries yet", color = peachColors.T1, style = PeachType.searchInput)465466 Spacer(Modifier.height(8.dp))466- Text("add your first entry with +", color = PeachColors.T2, style = PeachType.tinyMono)467+ Text("add your first entry with +", color = peachColors.T2, style = PeachType.tinyMono)467468 if (com.peachpasswords.BuildConfig.DEBUG) {468469 Spacer(Modifier.height(20.dp))469470 Text(