Skip to content

docs(coins): point the icon readme at the embedded loader - #692

Merged
kirillDevPro merged 1 commit into
mainfrom
docs/coin-icon-loader
Sep 22, 2026
Merged

kirillDevPro merged 1 commit into
mainfrom
docs/coin-icon-loader

Conversation

@kirillDevPro

Copy link
Copy Markdown
Collaborator

What & why

assets/coins/README.md named crates/moon-ui-gpui/src/coin_icons.rs and said the icons are loaded at runtime by dropping {symbol}.png into that folder. The loader is crates/moon-ui-gpui/src/media/coin_icons.rs: it embeds the set with include_dir, and the Assets window draws those icons in the positions table and in the Spot, Futures, and Quarterly wallet containers. Lookup strips a literal 1000 prefix, so 1000PEPE uses pepe.png.

Review dropped one sentence. A PNG beside the executable does not replace the embedded icon while the working directory already has an assets/coins directory: asset_dir returns the working-directory folder first and only then looks beside the executable.

How to verify

Read against crates/moon-ui-gpui/src/media/coin_icons.rs, crates/moon-ui-gpui/src/media/mod.rs (asset_dir), crates/moon-ui-gpui/src/panels/assets/table.rs (coin_cell), crates/moon-ui-gpui/src/panels/assets/wallets.rs, and the Assets module header. A clean-context review compared the new text with those sources and disputed only the sentence removed above. Markdown only.

Verified the moon-ui-gpui coin-icon path. This run did not open docs/ARCHITECTURE.md.

The readme named a loader path that no longer exists and described the
icons as a runtime drop-in. The set is embedded from media/coin_icons.rs.
@kirillDevPro
kirillDevPro merged commit b314d82 into main Sep 22, 2026
8 checks passed
@kirillDevPro
kirillDevPro deleted the docs/coin-icon-loader branch September 22, 2026 08:53
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