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:
parent
edc00d2a5f
commit
1fe4dea9c1
|
|
@ -993,7 +993,10 @@ private fun DesireMatchCard(match: DesireMatch) {
|
||||||
Text(
|
Text(
|
||||||
text = match.question.text,
|
text = match.question.text,
|
||||||
style = MaterialTheme.typography.bodyLarge.copy(fontWeight = FontWeight.Medium),
|
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),
|
modifier = Modifier.weight(1f),
|
||||||
maxLines = 3,
|
maxLines = 3,
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue