Skip to content

Migrate Android icons to Material Symbols#387

Merged
DRadmir merged 4 commits into
mainfrom
worktree-android-action-button-ios-parity
May 28, 2026
Merged

Migrate Android icons to Material Symbols#387
DRadmir merged 4 commits into
mainfrom
worktree-android-action-button-ios-parity

Conversation

@DRadmir
Copy link
Copy Markdown
Collaborator

@DRadmir DRadmir commented May 26, 2026

Closes #339

Summary

Migrate Android icons from the deprecated material-icons-extended to Material Symbols Rounded, per Google's official recommendation.

Adds an AppIcons registry — call sites use AppIcons.X instead of Icons.Filled.X. Action buttons match iOS visually (outlined Send/Receive/Buy/Swap, filled Deposit/Withdraw, 28dp glyph in 48dp circle).

Screenshot_1779969388

Wrap the action button icon in a Box so the circle background and the
icon glyph have independent sizes, matching the iOS RoundButton layout:
- Circle: 48dp (was 54dp), matches iOS 48pt
- Glyph: 24dp explicit size (was 22dp implicit via padding)

Replaces the requiredSize + padding trick that conflated the circle and
glyph sizing.
@DRadmir DRadmir self-assigned this May 26, 2026
@DRadmir
Copy link
Copy Markdown
Collaborator Author

DRadmir commented May 27, 2026

Find the best icons for Android

Google deprecated androidx.compose.material:material-icons-core/extended
and recommends Material Symbols XML drawables instead [1]. Replace all
51 deprecated Icons.* usages across 74 files with Material Symbols
Rounded drawables in res/drawable/ and drop the deprecated dependency.

Add AppIcons registry (icons/AppIcons.kt) so call sites stay clean
(Icons.Filled.X → AppIcons.X), mirroring the iOS Images.System.*
pattern for cross-platform parity.

Action buttons (Send/Receive/Buy/Swap) use FILL=0 (outlined) to match
iOS SF Symbols which use the plain (non-.fill) variants on the asset
scene. Deposit/Withdraw keep FILL=1 since iOS uses filled custom SVG
assets there. Glyph size bumped from 24dp to 28dp to compensate for
Material Symbols' internal padding and visually match iOS proportions.

[1] https://developer.android.com/develop/ui/compose/graphics/images/material
@DRadmir DRadmir changed the title Match iOS action button icon sizes on Android Migrate Android icons to Material Symbols May 28, 2026
DRadmir added 2 commits May 28, 2026 21:24
ChartStateView was added on main after this branch diverged, so the
icon migration script didn't touch it. Switch Icons.Outlined.Warning
to AppIcons.Warning to unblock CI.
@DRadmir DRadmir merged commit e30a687 into main May 28, 2026
3 checks passed
@DRadmir DRadmir deleted the worktree-android-action-button-ios-parity branch May 28, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android action button has small font size

2 participants