diff --git a/app/src/main/java/de/jeanlucmakiola/calendula/widget/agenda/AgendaWidget.kt b/app/src/main/java/de/jeanlucmakiola/calendula/widget/agenda/AgendaWidget.kt index db723c0..e620b57 100644 --- a/app/src/main/java/de/jeanlucmakiola/calendula/widget/agenda/AgendaWidget.kt +++ b/app/src/main/java/de/jeanlucmakiola/calendula/widget/agenda/AgendaWidget.kt @@ -60,8 +60,7 @@ import de.jeanlucmakiola.calendula.ui.common.eventFill import de.jeanlucmakiola.calendula.ui.common.eventAccent import de.jeanlucmakiola.calendula.ui.common.EventDimAlpha import de.jeanlucmakiola.calendula.widget.AgendaWidgetStyle -import de.jeanlucmakiola.floret.glance.LocalWidgetBackground -import de.jeanlucmakiola.floret.glance.WidgetBackground +import de.jeanlucmakiola.floret.glance.LocalWidgetSeeThrough import de.jeanlucmakiola.calendula.widget.WidgetDimFillAlpha import de.jeanlucmakiola.calendula.widget.widgetEventInk import de.jeanlucmakiola.calendula.ui.common.SECONDARY_INK_ALPHA @@ -314,13 +313,13 @@ internal fun classicItems(rows: List, limit: Int = MAX_AGENDA_ROWS): /** * v2.23's look (#489): a label line per day over plain rows with a colour - * stripe. On a transparent root each day sits on its own backing card, so the + * stripe. On a see-through root each day sits on its own backing card, so the * text stays readable over the wallpaper. */ @Composable private fun ClassicRows(rows: List, data: AgendaWidgetData.Ready, metrics: AgendaMetrics, preview: Boolean) { val items = classicItems(rows, if (preview) PREVIEW_ROWS else MAX_AGENDA_ROWS) - val backed = LocalWidgetBackground.current == WidgetBackground.TRANSPARENT + val backed = LocalWidgetSeeThrough.current val positions = if (backed) dayPositions(items.map { it.date }) else emptyList() val cardColor = widgetCardColor() val item: @Composable (Int) -> Unit = { index -> diff --git a/floret-kit b/floret-kit index 5e8702b..8ce070f 160000 --- a/floret-kit +++ b/floret-kit @@ -1 +1 @@ -Subproject commit 5e8702b7ac884a03043520df5045e423fa646a27 +Subproject commit 8ce070f4903318f393899b0b3cdc0cfd8ed78b0d