Skip to content

fix(tips): optically center share icon in tip card button - #1164

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/tip-card-share-icon-centering
Jul 27, 2026
Merged

fix(tips): optically center share icon in tip card button#1164
bmc08gt merged 1 commit into
code/cashfrom
fix/tip-card-share-icon-centering

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

The share icon button on the Tip Card screen renders its icon visually low in the circle.

The CircularIconButton container centers the icon's canvas correctly — the off-centering comes from the ic_remote_send drawable itself. Within its 28×28 viewport the glyph is bottom-heavy: a wide upload tray sits beneath a thin up-arrow, putting the stroke centroid ~10% below the viewport center. Geometric centering therefore leaves it looking like it sits toward the bottom of the circle.

Fix

Nudge the icon up ~1.5dp at the Tip Card call site to optically center it. The shared ic_remote_send drawable is untouched, so its other usages (TitleBar, BillState) are unaffected.

Notes

  • The 1.5dp value is derived from the glyph geometry (between the ~0.6dp bounding-box offset and the ~2.9dp full-centroid offset at the 30dp render size) and may want a small visual tweak once seen on-device.
  • Tipping module compiles cleanly.

The ic_remote_send glyph is bottom-heavy (a wide upload tray beneath a
thin arrow), so geometric centering inside CircularIconButton leaves it
sitting visually low in the circle. Nudge the icon up ~1.5dp at the tip
card call site to optically center it, without touching the shared
drawable used elsewhere.
@bmc08gt
bmc08gt merged commit feb3e8c into code/cash Jul 27, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/tip-card-share-icon-centering branch July 27, 2026 18:47
@github-actions github-actions Bot added the type: fix Bug fix label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant