Skip to content

Scale status icons from 24px to 48px - #27

Merged
sven97 merged 1 commit into
mainfrom
status-icons-48px
Aug 19, 2026
Merged

sven97 merged 1 commit into
mainfrom
status-icons-48px

Conversation

@sven97

@sven97 sven97 commented Aug 19, 2026

Copy link
Copy Markdown
Owner

2x nearest-neighbor pixel-doubling of the existing icons.h bitmaps (lossless for this art: every source shape sits on integer boundaries of the original 24-unit grid, so doubling each pixel is identical to re-rasterizing at 48x48 — verified byte-for-byte against a script that does the doubling independently of the hand-written file).

ICON_COL_RESERVE_FACTOR in layout_math.h doubled (1.65 → 3.3) to match: it's defined as a multiple of the stat font size, not of the icon's own fixed pixel size, so doubling it exactly reproduces the original icon:gap:text ratio at every font-ladder rung instead of just whichever rung it happened to be tuned against.

Verified: pio test -e native (90/90, test_icons updated for 48x48/288 bytes), pio run -e ee02 clean build, flashed to the physical EE02 and confirmed via /debug/key1 + /current — icons render crisp and well-proportioned against the stat text, no clipping/overlap.

2x nearest-neighbor pixel-doubling of the existing icons.h bitmaps
(lossless for this art: every source shape sits on integer boundaries
of the original 24-unit grid, so doubling each pixel is identical to
re-rasterizing at 48x48 -- verified byte-for-byte against a script that
does the doubling independently of the hand-written file).

ICON_COL_RESERVE_FACTOR in layout_math.h doubled (1.65 -> 3.3) to match:
it's defined as a multiple of the stat font size, not of the icon's own
fixed pixel size, so doubling it exactly reproduces the original
icon:gap:text ratio at every font-ladder rung instead of just whichever
rung it happened to be tuned against.

Verified: pio test -e native (90/90, test_icons updated for 48x48/288
bytes), pio run -e ee02 clean build, flashed to the physical EE02 and
confirmed via /debug/key1 + /current -- icons render crisp and
well-proportioned against the stat text, no clipping/overlap.
@sven97
sven97 merged commit 6da0f2b into main Aug 19, 2026
5 checks passed
@sven97
sven97 deleted the status-icons-48px branch August 19, 2026 21:58
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