Nine widgets and still no colour picker

Until this month Calendula had two home-screen widgets, an agenda and a month grid, and one set of options that every widget on the phone shared. Since 2.24 there are nine, and every widget you place has a settings screen of its own. Most of what went into them was asked for in the issue tracker. One part of it I turned down, and one part I had to undo a week after shipping.

What’s new

The two old widgets got a redesign, and seven new ones joined them:

Most of these came out of one thread. In #71 someone asked for widgets in Material 3 Expressive, and the replies turned into a wish list: a 2×2 that actually uses its space, a Samsung-style split of grid and day, a list of just today’s events. Each of those became a widget. When the beta came out, the person who opened the thread asked for one more change: drop “Calendula” from every name in the widget picker, since you’re already looking at Calendula’s widgets. That one went in too.

On Android 15 and later, the picker previews are the real widgets drawn with sample events, in your language and your colours. Older versions get static mock-ups, redrawn to match.

The colour picker I didn’t build

The request that shaped 2.24 most was #292, “Customize widget colors”. The screenshot attached to it showed a home screen of transparent widgets with Calendula’s solid agenda sitting in the middle. Fair complaint.

I said no to the colour picker part, and I’d say it again. Calendula takes its colours from Material You, the system’s dynamic palette, and a widget with a hand-picked background is a widget that stops matching the moment you change your wallpaper. A calendar has no business having a brand, and a picker would hand each widget one of its own. (The Material 3 Expressive post covers the rest of that stance.)

What the person needed wasn’t a colour, though. They needed the widget to stop being a block. So every widget now has a background setting with three options:

Plus a light, dark or follow-the-app theme and, for every widget that shows events, the calendars it includes. The list widgets add their text size and, depending on the widget, the time range and how past events look.

Transparent was the hard one, and I said so on the issue: with nothing behind the text, it has to stay readable on any wallpaper without me choosing a colour for it. A user on the thread suggested two ways out, outlined text or giving each event its own filled box, and guessed neither would look good. I shared the worry about outlines, which don’t sit well with Material 3, and went with the boxes: on a transparent widget each event becomes its own filled pill, the header sits in a pill too, and the pills still take their colours from the palette. The widget disappears; the events don’t. The person who suggested it said afterwards that they were ready to daily-drive Calendula.

The widget I had to bring back

2.24.0 shipped on 6 November. The next day, #489 opened:

I must admit that the new Widget design is a bit in the face. I’m a big fan of Niagara Launcher but those huge coloured pills take over my mobile home screen! Would it be possible to re-introduce the former Agenda Widget?

A second person agreed within a day. The old agenda had a line per day and a thin colour stripe beside each event. It was plain, and on a minimal launcher, plain was the point. The new cards look good in a screenshot, but I’d tuned them for a home screen like mine.

So 2.24.1 gave the agenda a Style option: Cards is the new look, Classic is the 2.23 layout, under the new header. It also added the thing the same user said they’d been missing all along, an Opacity slider from 20 to 100% for solid and tinted backgrounds. Below 50%, the card widgets back their content the way a transparent widget does, so the text stays readable.

That’s the same rule as before. A slider over the system colour is fine, because the colour still comes from your palette. A second layout is fine, because both are made of the same roles. An RGB field isn’t, because then the widget answers to whatever you typed into it, not to your phone. The reply on the issue after the update was “Beautiful - and with transparency! Can’t ask for more.”

A month that didn’t fit

One more story, because it’s the kind of thing you only learn from widgets. The old month widget showed “Can’t show content” on busy months (#372). Logcat had the reason:

java.lang.IllegalStateException: There are too many views

Calendula’s widgets are written in Jetpack Glance, which compiles down to RemoteViews, and Glance caps how many views one widget may create. A month grid grows with how full your month is, and a busy one went over the cap. A user suggested rendering each day as a bitmap. In the end I drew the weeks as plain RemoteViews and embedded them in the Glance widget, which gets around Glance’s count. Each day now shows as many events as its height fits and folds the rest into “+N”. Taps open the day, not the single event, which was that user’s other suggestion and makes more sense on a grid that small anyway.

Where they are

Long-press your home screen, pick Widgets, find Calendula. Settings → Widgets & tiles lists every one you’ve placed, so you can change them without hunting for each one on your home screens. On Android 12 and later you can also long-press a widget and choose Edit. The widgets page has the full rundown, and the changelog has everything else in 2.24, which was not only widgets.

Most of this release was written by people in the issue tracker. I mostly decided which of their ideas would still look like your phone.