diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ed9ea5..ded84b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ as the release notes. ## [Unreleased] +### Fixed + +- The timeline header's button hints are drawn smaller, so "START Exit" no longer runs into the post counter on the top screen (seen in Azahar). The layout's character-width estimate is too narrow for the system font; this is the minimum change, not a font change. ([#71](https://github.com/ewanc26/indigo/pull/71)) + ## [0.12.0] - 2026-10-07 What has and has not been run, plainly: the host tests pass (4035 checks), the warnings sweep is clean, and the 3DS build links against Wolfram v0.37.0. The video poster has not been seen on a 3DS or in Azahar; the snapshot harness renders it with a stand-in font, so the widths there are approximate. diff --git a/src/ui/layout_post.c b/src/ui/layout_post.c index 446bd7f..37e66ab 100644 --- a/src/ui/layout_post.c +++ b/src/ui/layout_post.c @@ -267,7 +267,11 @@ indigo_layout_build_top_post(const indigo_app *app, indigo_canvas *c) : app->feed_uri[0] ? "B Feeds SEL Reload" : "B Menu SEL Reload START Exit"; float hint_x = 18.0f + (float) strlen(title) * INDIGO_CHAR_WIDTH * 0.8f + 12.0f; - float hint_end = 326.0f - (float) strlen(hint) * INDIGO_CHAR_WIDTH * 0.5f; + /* The hint is drawn at HINT_SCALE, and its end is kept clear of the counter + * at x=330. Measured in Azahar, the hint runs about 8 px a character at 0.5, + * wider than the layout's estimate, so the hint is drawn smaller to keep it + * clear of the counter. */ + float hint_end = 326.0f - (float) strlen(hint) * INDIGO_CHAR_WIDTH * 0.45f; unsigned units; if (hint_x < 116.0f) { @@ -294,7 +298,7 @@ indigo_layout_build_top_post(const indigo_app *app, indigo_canvas *c) indigo_canvas_text(c, hint_x, 12, 0.5f, t->status_is_error ? COL_ERROR : COL_TEXT_DIM, "%.60s", t->status); } else { - indigo_canvas_text(c, hint_x, 12, 0.5f, COL_TEXT_DIM, "%s", hint); + indigo_canvas_text(c, hint_x, 12, 0.45f, COL_TEXT_DIM, "%s", hint); } if (p) { indigo_canvas_text(c, 330, 12, 0.6f, COL_TEXT_DIM, "%u / %u%s", t->selected + 1,