Skip to content

Roasty's palette gets a home, and its mood marks follow the mood - #510

Merged
maximsan merged 3 commits into
mainfrom
fix/roasty-palette
Sep 5, 2026
Merged

Roasty's palette gets a home, and its mood marks follow the mood#510
maximsan merged 3 commits into
mainfrom
fix/roasty-palette

Conversation

@maximsan

@maximsan maximsan commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Closes #424.

Visible change. In Dark Roast, Roasty's sleeping zs were the light mood's grey on the dark canvas, and the wrong-answer badge was the light mood's red. The mascot component (prototype/roasty.jsx) gives those to --ink-mute and --berry, and the module stars, rays and two sparkles to --warn. The Roasty widget now hands context.mood to its painter and those marks read it — so in Cupping the stars go from #C8843A to the mood's warn #9A5F1C, and the badge from #B8533A to berry #A8362A. This is the thing to look at in a screenshot, in both moods.

The palette. RoastyColors holds the 15 colours that are fixed in both moods: the ten the design page names in its /* Roasty palette */ block, and the five the drawings use unnamed. Same shape as ArtColors; the unthemed guard lists it.

Guards. roasty_colors_test.dart reads the palette block off prototype/Mascot - Roasty.html and the unnamed literals off roasty.jsx, and fails any Color(0x…) under lib/features/companion. roasty_painters_mood_test.dart paints onto a recording canvas and checks each mood-following mark uses its own mood's value and not the other's.

Also here. The happy face's right cheek was at 0.45 against the left's 0.55; both are the design's 0.55 now. Two prototype citations in roasty.dart are gone. The face-geometry gaps found on the way are #506.

Checks. tool/check_changelog.sh, dart format --set-exit-if-changed, flutter analyze, the metrics gate and flutter test pass locally.

# Conflicts:
#	docs/CHANGELOG.md
#	lib/features/companion/presentation/roasty.dart
@maximsan
maximsan merged commit 683d0e5 into main Sep 5, 2026
6 checks passed
@maximsan
maximsan deleted the fix/roasty-palette branch September 5, 2026 17:28
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.

Roasty's palette is 34 bare literals across three painters

1 participant