Match Add Task/Chore widget icons and colours to the rest of the app#88
Merged
Conversation
Both quick-add widgets previously showed just a "+" on a generic primary/tertiary background. They now use the same icon and fixed accent colour the app already uses for each type elsewhere (bottom nav, add-menu FAB): CheckCircle / TypeTaskContainer for tasks, CleaningServices / TypeChoreContainer for chores. These accent colours are intentionally fixed across all colour themes, so the widgets keep a stable identity regardless of which palette the user has picked. Adds two vector drawables (ic_widget_task, ic_widget_chore) sourced from Google's Material Symbols path data for check_circle and cleaning_services, shifted into Android's vector coordinate space via a translateY group rather than hand-editing coordinates.
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.
Summary
GlanceTheme.colors.primary/.tertiarybackground (an arbitrary choice made when the widgets were first built). They now match the rest of the app:Icons.Filled.CheckCircleicon +TypeTaskContainer/TypeTaskOnContainercolours — the exact same icon and fixed accent colour already used for Tasks on the bottom nav and add-menu FAB (DashNavGraph.kt,AddMenuFab.kt).Icons.Filled.CleaningServicesicon +TypeChoreContainer/TypeChoreOnContainercolours, likewise matching Chores elsewhere.TypeTaskContainer/TypeChoreContainercolours are intentionally fixed across all four user-selectable colour themes (per the comment inColor.kt), so the widgets keep a stable identity no matter which palette is active — this is a stronger match than reusing the theme-dependentprimary/tertiaryroles the widgets used before.ImageVectoricons can't be passed directly to Glance'sImage, added two vector drawables (ic_widget_task.xml,ic_widget_chore.xml) built from Google's authoritative Material Symbols path data forcheck_circleandcleaning_services(fetched directly fromgoogle/material-design-iconsrather than transcribed from memory, then cross-checked for well-formed XML and valid path-command syntax). They use a<group android:translateY="960">wrapper to shift Material Symbols' "0 -960 960 960" viewBox convention into Android's vector coordinate space, rather than hand-editing every coordinate.changelog/unreleased/fragment (patch bump).Test plan
Generated by Claude Code