From a7ae8ff9129e58abcb266216af29324ef22f5269 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 20 Jul 2026 18:46:18 +0200 Subject: [PATCH] style(month): let the outline alone mark the split style's selected day (#53) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .../java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt b/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt index c4b5505..d6e4c25 100644 --- a/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt +++ b/app/src/main/java/de/jeanlucmakiola/calendula/ui/month/MonthScreen.kt @@ -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 }