Skip to content

Widget: Material You colours, launcher card and responsive layouts - #25

Merged
ApolloF merged 1 commit into
mainfrom
widget-material-you
Oct 21, 2026
Merged

ApolloF merged 1 commit into
mainfrom
widget-material-you

Conversation

@ApolloF

@ApolloF ApolloF commented Oct 21, 2026

Copy link
Copy Markdown
Owner

The Today widget had a hard-coded near-black card and grey blobs, so it clashed with a themed home screen. It now follows the wallpaper colours on Android 12+ (older Android keeps the app's scheme), uses the system widget background and radius, and shows taken/due/missed/skipped with accent and error colours. Taken doses stay in the list. It resizes from one row (next dose) to a short card to the full list, and the picker gets a real preview.

Note: on 12+ the widget no longer follows the in-app palette, it matches the launcher instead.

Checked on my S24 in Lawnchair (light and dark) and Kvaesitso (borderless, theme colour on), one-tap check still works. Ran :core:domain:test, lintFossDebug lintPlayDebug, assembleFossDebug assemblePlayDebug. Robolectric suite left to CI.

- Follows the wallpaper (Material You) colours on Android 12+, like the
  launcher's own widgets; older Android keeps the app's colour scheme.
- Card uses android:id/background and the system widget corner radius,
  with the dynamic widget background instead of the near-black surface.
- Status marks: taken = filled accent with a check, due = accent ring,
  missed = error ring, skipped = muted ring; the text says the same.
  The ring drawable gets a transparent fill (a tinted stroke-only shape
  was drawn as a solid grey circle).
- Taken and skipped doses stay in the list in place, so a row keeps its
  position after the one-tap check.
- Responsive: one row (next dose), short card (header + next dose), list
  from 180x150 dp. minResizeHeight 40 dp.
- Picker preview: previewLayout (Android 12+) and previewImage.
- Row order lives in core/domain (WidgetLines) with a test.
@ApolloF
ApolloF merged commit 06d5095 into main Oct 21, 2026
3 checks passed
@ApolloF
ApolloF deleted the widget-material-you branch October 21, 2026 23:03
@ApolloF ApolloF mentioned this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant