style(month): let the outline alone mark the split style's selected day (#53)
The selected cell also swapped its fill to primaryContainer, which lightened the whole cell — a second state stacked on the day rather than a mark on it, and one that fought today's circle when the two landed together. The outline and the day number carry it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -930,8 +930,10 @@ private fun SplitDayCell(
|
||||
onClick: () -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
// Selection is the outline's job alone. Tinting the fill as well lightened
|
||||
// the whole cell, which read as a second state on top of the day rather than
|
||||
// as a mark on it — and fought today's own circle when they coincided.
|
||||
val background = when {
|
||||
isSelected -> MaterialTheme.colorScheme.primaryContainer
|
||||
inMonth -> MaterialTheme.colorScheme.surfaceContainer
|
||||
else -> MaterialTheme.colorScheme.surfaceContainerLow
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user