Skip to content

fix(receiver): centre the connecting screen and translate its role line - #214

Merged
swellweb merged 1 commit into
swellweb:maint-3.6from
kenshinice-ai:receiver-splash-centred
Oct 16, 2026
Merged

swellweb merged 1 commit into
swellweb:maint-3.6from
kenshinice-ai:receiver-splash-centred

Conversation

@kenshinice-ai

Copy link
Copy Markdown

The Receiver's connecting screen (shown between the sender connecting and the first frame) placed each line at a fixed offset tuned for the English text: center_x - 156 for "TargetBridge", center_x - 48 for "RECEIVER", and so on. Translated lines are longer or shorter than the English, so they sat off centre, and "RECEIVER" itself was never translated.

  • tb_disp_text_width() measures a string with Core Text; tb_disp_draw_text_centered() draws it centred on a point. The five splash lines use it.
  • The title now reads common.app_name (still "TargetBridge"), and the role line reads a new key, receiver.splash.role: RECEIVER / RICEVITORE / EMPFÄNGER / RÉCEPTEUR / 接收端.
  • No layout change otherwise: same fonts, sizes, colours and vertical positions.

Checks: check_localizations.sh passes for all five languages; make and make test pass. I have not photographed the screen on real hardware in every language, so a look in Italian or German would be welcome.

🤖 Generated with Claude Code

The connecting screen placed each line at an offset tuned for the English
word "TargetBridge", so translations and longer names sat off centre, and
"RECEIVER" was not translated. Lines are now centred on their measured
width, and the role line reads receiver.splash.role in all five languages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
kenshinice-ai added a commit to kenshinice-ai/pwe-imac-display that referenced this pull request Oct 14, 2026
- pwe/PATCHES.md lists every commit that changes an upstream file, with its
  upstream PR (swellweb#212, swellweb#214) and status.
- .github/SECURITY.md: report PWE problems privately to
  [email protected]; upstream problems go to TargetBridge first.
- HANDOFF: main is upstream plus registered patches, not upstream unchanged;
  the x86_64 receiver passed the smoke test under Rosetta on 2026-10-14.
- Install guide: says it covers only the PWE build, and replaces the claim
  that any Gatekeeper warning means a foreign file with checksum steps.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@swellweb
swellweb changed the base branch from main to maint-3.6 October 16, 2026 14:33
@swellweb

Copy link
Copy Markdown
Owner

Thank you for the centering and translated role label. I moved this to maint-3.6 and rendered the actual Receiver drawing code offscreen in all five supported languages, alongside the waiting-screen change. The combined Sender tests, Receiver checks and local connection/decode smoke test pass. I am keeping the hardware validation separate from these local checks.

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.

2 participants