Open XilinJia opened 3 months ago
There's a chance that icon names have changed since they were originally added. They were originally sourced via: https://github.com/google/material-design-icons
I unfortunately don't have a solution to make it clearer, as it strongly depends on the font mapping itself.
However you can always use the iconics sample application which includes all the fonts and icons for you to search in
Thanks. The app is a good start point. It would be better if they are shown on the computer so that I can copy-paste the names into my code.
Not what you mean but I personally like to mirror my phone to the computer using scrcpy
(https://github.com/Genymobile/scrcpy), which then allows me to copy paste strings.
About this issue
Details
Checklist
I recently migrate from Iconify to this library. So I admit I'm new with this. My trouble is to figure out what name to use for a font/icon. I don't see this is documented clearly.
For instance, I implemented these:
I searched for an icon named "pause" on https://fonts.google.com/icons?selected=Material+Symbols+Outlined:pause_circle:FILL@0;wght@400;GRAD@0;opsz@24&icon.query=pause+&icon.size=24&icon.color=%23e8eaed&icon.platform=android
I want to use the one with a circle, and it says the name for Android is pause_circle, so I tried with "{pause_circle}" and it didn't work. I google around and got some hint somewhere that I need to add a prefix like gmd- or gmo-, so I fooled around with "{gmo-pause_circle}" and "{gmd-pause_circle}", but it didn't get the icon either. I then searched in your source code and guessed that it might be {gmo-pause_circle_outline}, and it works.
I wonder how other people use this to avoid this type of trouble, but I hope it can be make clearer.