fix(desiresync): theme-aware reveal text for dark mode (C-DS-001 P2)

DesireMatchCard used a hardcoded dark plum (Color(0xFF3D1F2E)) for the shared-desire
text -> readable on the light card in light mode, but dim/low-contrast on the dark-tinted
card in dark mode. Switched to MaterialTheme.colorScheme.onSurface so it adapts.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
null 2026-06-25 09:58:24 -05:00
parent eb9facc2d5
commit e0d33ea85d
1 changed files with 4 additions and 1 deletions

View File

@ -993,7 +993,10 @@ private fun DesireMatchCard(match: DesireMatch) {
Text(
text = match.question.text,
style = MaterialTheme.typography.bodyLarge.copy(fontWeight = FontWeight.Medium),
color = Color(0xFF3D1F2E),
// Was a hardcoded dark plum (Color(0xFF3D1F2E)) — fine on the light card in
// light mode, but dim/low-contrast on the dark-tinted card in dark mode
// (C-DS-001). onSurface adapts: dark text on light, light text on dark.
color = MaterialTheme.colorScheme.onSurface,
modifier = Modifier.weight(1f),
maxLines = 3,
overflow = TextOverflow.Ellipsis