Repository navigation
popups/timeline: size the peek icon box for the user's text size - #2467
Closed
scottanderson wants to merge 2 commits into
Closed
scottanderson wants to merge 2 commits into
scottanderson wants to merge 2 commits into
Conversation
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
force-pushed
the
timeline-text-size
branch
from
October 20, 2026 18:09
88f9b5c to
6149e3f
Compare
Contributor
Author
|
This part isn't needed |
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.
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_WIDTHmacro infw/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:
"Before" below is the #2466 test image, before this change.
Reference image changes
Drawn with
tools/test_image_review.py.Images in
tests/test_imagesat c0a91f5 (before) and 6149e3f (after). The Test workflow checks that they match what the code draws. Only screens with a change are shown.asterix
obelix
2 files
test_timeline_peek__content_sizes~asterix.png: changedtest_timeline_peek__content_sizes~obelix.png: changedAll 402 host tests pass on obelix, gabbro and asterix, and gitlint passes. Not tested in QEMU or on hardware.
🤖 Generated with Claude Code