I’m wondering if there is a list of the icons available for editor.addButton. It seems that paperclip works. Is there anything else?
Search for web/imgs/
in File Finder · GitHub
But I recommend picking up an icon from Bootstrap Icons or some other source instead.
2 Likes
@adbo Thank you for the suggestion. I tried to add a custom icon, but I get a FileNotFoundError error
editor.addButton(icon="/icon/volume-up-fill.svg"
Any ideas?
If the icon is in your add-on’s folder, you have to specify its path like this:
editor.addButton(icon=os.path.join(os.path.dirname(__file__), "icon/volume-up-fill.svg"), ...)
3 Likes
Works beautifully!