Skip to content

popups/timeline: size the peek icon box for the user's text size - #2467

Closed
scottanderson wants to merge 2 commits into
coredevices:mainfrom
scottanderson:timeline-text-size
Closed

scottanderson wants to merge 2 commits into
coredevices:mainfrom
scottanderson:timeline-text-size

Conversation

@scottanderson

@scottanderson scottanderson commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #2308, reworked per review.

The peek's text follows the user's text size, but its icon box always used the platform default size's width. The icon box width now follows the user's text size too. The box keeps the platform default height, so the unobstructed area apps lay out around doesn't change.

Compared with #2308, this drops the height change and the taller Extra Large box. The net change is the TIMELINE_PEEK_ICON_BOX_WIDTH macro in fw/popups/timeline/peek.h. The first commit is the timeline peek test from #2466, and it drops out once that merges.

What changes on screen:

  • obelix: the Medium icon box is 30 px wide instead of 34 px.
  • asterix: the Large icon box is 34 px wide instead of 30 px.
  • gabbro: round, 51 px at every size, so unchanged.

"Before" below is the #2466 test image, before this change.

Reference image changes

Drawn with tools/test_image_review.py.

Images in tests/test_images at c0a91f5 (before) and 6149e3f (after). The Test workflow checks that they match what the code draws. Only screens with a change are shown.

Platform Changed New Removed
asterix 1 0 0
obelix 1 0 0

asterix

asterix-1

obelix

obelix-1
2 files
  • test_timeline_peek__content_sizes~asterix.png: changed
  • test_timeline_peek__content_sizes~obelix.png: changed

All 402 host tests pass on obelix, gabbro and asterix, and gitlint passes. Not tested in QEMU or on hardware.

🤖 Generated with Claude Code

scottanderson and others added 2 commits October 20, 2026 13:19
Add a screenshot test that draws the peek over the watchface once per
content size, with a title and subtitle and with a two-line title.

The peek box keeps the default size's height and icon width at every
size. At Extra Large this cuts the title to one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Scott Anderson <pebbleos@gitbran.ch>
The peek's text follows the user's text size, but its icon box used
the display's default size for its width. Read the user's size at
runtime instead.

The box keeps the platform default height. Apps lay out around the
peek's unobstructed area, so it can't grow with the text size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Scott Anderson <pebbleos@gitbran.ch>
@scottanderson

Copy link
Copy Markdown
Contributor Author

This part isn't needed

@scottanderson
scottanderson deleted the timeline-text-size branch October 20, 2026 18:49
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