← Calendula

Your CalDAV calendar, on the home screen

Calendula ships nine home-screen widgets, from a 1×1 date to a month grid beside a day's events. All of them read Android's own calendar store, so a Nextcloud account synced by DAVx⁵ appears in them with nothing to configure, and none of them can reach the network.

The nine widgets

Why there is no account to set up

A widget that shows your self-hosted calendar sounds like it needs an account, a server URL and a sync interval. This one needs none of those, because it isn't the thing doing the syncing.

On Android, calendars live in a system-wide store, the CalendarContract provider. A sync adapter such as DAVx⁵ puts your CalDAV calendars into it; Calendula reads out of it. The widget is a view onto that store, which is why it shows Nextcloud events, Google events, birthdays and a subscribed ICS feed side by side without knowing what any of them are, and why it keeps working when the app is closed and when you're on a train with no signal.

Each widget also has its own calendar choice on top of that. It starts with every calendar you have switched on in the app, and you can leave some out, so a work agenda and a family month grid can sit side by side. A calendar you add later shows up by default.

What a calendar widget gets wrong

Two things, usually, and they're both invisible until they bite.

It doesn't notice the day changed. A widget that says "today" has to redraw at local midnight. The obvious mechanism, listening for the system's date-changed broadcast, has not worked for a manifest-declared receiver since Android 8, which leaves the throttled half-hourly update as the only thing that reliably moves the date. That's how you get a home screen still showing yesterday at nine in the morning. Calendula holds its own alarm for the next local midnight and re-arms it on each firing, so the rollover happens on the boundary rather than whenever the system gets round to it.

It doesn't look like the rest of the phone. The widgets are written in Jetpack Glance, and every colour except the events' own comes from a Material 3 role rather than a widget palette of mine, so they follow the system palette on Android 12 and up and follow light and dark, or the theme you set for that widget. Below Android 12 they fall back to the same hand-tuned schemes the app uses, so an older phone gets a widget that matches its app rather than a grey rectangle.

A third, smaller problem is a month grid that shows dots. A dot tells you something is on that day, which you could have guessed. Calendula's month widget draws the events themselves: a coloured bar per event carrying as much of the title as fits, a multi-day event as one bar running across the days it spans in that week, and a +2 on a day with more than its height fits. Tapping anywhere in a day opens that day. (The week strip does use dots, because at 4×1 there is room for nothing else.)

Writing them in Compose is not free, and what Glance compiles down to is its own story: RemoteViews, with all the old constraints still underneath.

The other two surfaces

Both do the same small thing: open the create-event form on today, without a trip through the app's main screen.

What these widgets are not

  • There is no colour picker. Background style, opacity and light or dark are yours to choose; the colours themselves come from your palette. The post on the 2.24 widgets explains why.
  • There is no task widget; tasks are Agendula's job, and it has widgets of its own. It's on F-Droid and Google Play.
  • There is no font choice. Text follows the system font, in four sizes for the widgets that list events.
  • If heavy configurability is what you want, the dedicated widget apps are better at it. Calendula even accepts being launched by one of them to create an event.

Frequently asked

Will the widget show my Nextcloud or CalDAV calendar?

Yes, with no account or server to set up in the widget. Calendula reads Android’s system calendar store, so whatever DAVx⁵ (or Google, or Exchange, or a WebCal subscription) has synced onto the device is already there. A widget starts with the calendars you have switched on in the app, and you can leave some of those out in its settings.

Does the widget need internet access?

It has none to need. Calendula ships without android.permission.INTERNET, so the widget draws from the on-device calendar store and nothing more. Whatever syncs that store keeps doing so in the background, widget or no widget.

Does it follow my wallpaper colours?

On Android 12 and up, yes. The widgets draw from Material You dynamic colour, so they match the home screen. Each widget can follow the app’s theme or be set to light or dark on its own. Below Android 12 they fall back to Calendula’s own light and dark schemes, the same ones the app surfaces use.

Can I configure each widget separately?

Yes, since 2.24. Placing a widget opens its settings with a live preview: a tinted, solid or transparent background, an opacity slider, the theme, and for widgets that show events, which calendars. Widgets that list events add a text size and, depending on the widget, a time range and a past-event style. To change one later, go to Settings → Widgets & tiles, which lists every widget you have placed, or on Android 12 and later long-press the widget and choose Edit.

Can I pick my own widget colours?

No, and that is on purpose. Colours come from your Material You palette, so a widget keeps matching when you change your wallpaper. What you can change is how much of that colour shows: a tinted, solid or transparent background and an opacity from 20 to 100%. On a transparent widget each event gets its own filled pill, so the text stays readable on any wallpaper.

Why does the widget say it needs calendar access?

A widget cannot ask for a runtime permission itself. If Calendula has not been granted calendar access yet, the widget says so, and its header opens the app, where the grant happens.

Long-press an empty spot on the home screen, pick Widgets, find Calendula. If it isn't installed yet, the install page covers the five ways to get it, or read what the app actually is first.