Skip to content

fix(inkhud): scale map applet markers with font size#10288

Merged
HarukiToreda merged 1 commit into
meshtastic:developfrom
giannoug:fix/inkhud-map-marker-scale
Apr 25, 2026
Merged

fix(inkhud): scale map applet markers with font size#10288
HarukiToreda merged 1 commit into
meshtastic:developfrom
giannoug:fix/inkhud-map-marker-scale

Conversation

@giannoug

Copy link
Copy Markdown
Contributor

The MapApplet (used by the Positions applet) had all marker sizes hardcoded in pixels: an 11 px hop-count box, a radius-8 own-node bullseye, and a 12 px labeled-marker cross. On displays with a small font (6 pt, ~8 px line height) these looked fine. On the LilyGo T5-S3-ePaper-Pro, which uses a 12 pt fontSmall (~17 px line height), the hop-count digit overflowed its box entirely and all markers appeared as tiny specks on the 960×540 panel.

All three sizes now derive from fontSmall.lineHeight(), so the applet scales correctly across display variants without any per-variant tuning. Before / after screenshots attached.

20260424_235612 20260424_235832

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • Heltec (Lora32) V3
    • LilyGo T-Deck
    • LilyGo T-Beam
    • RAK WisBlock 4631
    • Seeed Studio T-1000E tracker card
    • Other: LilyGo T5-S3-ePaper-Pro

Marker boxes, the own-node bullseye, and the labeled-marker cross were
all hardcoded in pixels (11px box, r=8 circle, 12px cross). On the
T5S3 with a 12pt fontSmall (~17px line height) the hop-count digit
overflowed its box entirely. Sizes now derive from fontSmall.lineHeight()
so the applet renders correctly on both small (6pt) and large (12pt+)
display variants.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the hardware-support Hardware related: new devices or modules, problems specific to hardware label Apr 24, 2026
@thebentern thebentern requested a review from HarukiToreda April 24, 2026 22:02
@HarukiToreda

Copy link
Copy Markdown
Contributor

I checked the other targets like Heltec Wireless Paper and L1 Pro Eink, no regressions. Good to commit

@HarukiToreda HarukiToreda added enhancement New feature or request device-screen Device Screen Enhancements InkHUD Issues directly related to InkHUD UI labels Apr 25, 2026
@HarukiToreda HarukiToreda merged commit 9306e66 into meshtastic:develop Apr 25, 2026
82 of 83 checks passed
mariotti pushed a commit to mariotti/firmware that referenced this pull request May 6, 2026
…tastic#10288)

Marker boxes, the own-node bullseye, and the labeled-marker cross were
all hardcoded in pixels (11px box, r=8 circle, 12px cross). On the
T5S3 with a 12pt fontSmall (~17px line height) the hop-count digit
overflowed its box entirely. Sizes now derive from fontSmall.lineHeight()
so the applet renders correctly on both small (6pt) and large (12pt+)
display variants.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

device-screen Device Screen Enhancements enhancement New feature or request hardware-support Hardware related: new devices or modules, problems specific to hardware InkHUD Issues directly related to InkHUD UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants