From f8a2569831a24a4714a5d3e025232eb904b19c47 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sat, 27 Jun 2026 16:20:33 +0200 Subject: [PATCH] feat(agenda): warmer empty state + "upcoming" wording Reword the range header to "Showing all upcoming events for". Replace the dry empty state ("Nothing scheduled" + subtitle) with a single warmer line ("You're all caught up"), drop the subtitle, and switch the icon to a coffee cup. The empty title is shared with the agenda widget. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../calendula/ui/agenda/AgendaScreen.kt | 11 ++--------- app/src/main/res/values-de/strings.xml | 5 ++--- app/src/main/res/values/strings.xml | 5 ++--- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/de/jeanlucmakiola/calendula/ui/agenda/AgendaScreen.kt b/app/src/main/java/de/jeanlucmakiola/calendula/ui/agenda/AgendaScreen.kt index 9f28a22..0a7d9b4 100644 --- a/app/src/main/java/de/jeanlucmakiola/calendula/ui/agenda/AgendaScreen.kt +++ b/app/src/main/java/de/jeanlucmakiola/calendula/ui/agenda/AgendaScreen.kt @@ -20,8 +20,8 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Coffee import androidx.compose.material.icons.filled.DateRange -import androidx.compose.material.icons.filled.EventAvailable import androidx.compose.material.icons.filled.Menu import androidx.compose.material.icons.filled.Search import androidx.compose.material3.DrawerValue @@ -376,7 +376,7 @@ private fun AgendaEmpty(modifier: Modifier = Modifier) { horizontalAlignment = Alignment.CenterHorizontally, ) { Icon( - imageVector = Icons.Filled.EventAvailable, + imageVector = Icons.Filled.Coffee, contentDescription = null, tint = MaterialTheme.colorScheme.onSurfaceVariant, modifier = Modifier.size(48.dp), @@ -387,13 +387,6 @@ private fun AgendaEmpty(modifier: Modifier = Modifier) { style = MaterialTheme.typography.titleMedium, textAlign = TextAlign.Center, ) - Spacer(Modifier.height(4.dp)) - Text( - text = stringResource(R.string.agenda_empty_subtitle), - style = MaterialTheme.typography.bodyMedium, - color = MaterialTheme.colorScheme.onSurfaceVariant, - textAlign = TextAlign.Center, - ) } } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 9a8e1aa..a1448d2 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -230,8 +230,7 @@ Heute Heute Morgen - Nichts geplant - Anstehende Termine erscheinen hier. + Alles erledigt Suchen @@ -298,7 +297,7 @@ Benutzerdefiniert… Tage Nur vorübergehend — wird beim erneuten Öffnen von Calendula auf deinen gespeicherten Zeitraum zurückgesetzt. - Alle Termine für + Alle anstehenden Termine für %d Tag %d Tage diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3cbb111..fed0707 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -231,8 +231,7 @@ Today Today Tomorrow - Nothing scheduled - Upcoming events will show up here. + You\'re all caught up Search @@ -291,7 +290,7 @@ Custom… Days Just for now — resets to your saved range when you reopen Calendula. - Showing all events for + Showing all upcoming events for %d day %d days