Repository navigation
Widget: Material You colours, launcher card and responsive layouts - #25
Merged
Merged
Conversation
- 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.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.