Hello!
There is an issue to describe how to use custom Icon sets: jmix-framework/jmix-docs#380.
In Jmix custom Icon set can be added the same way like in CUBA: Icon Sets - CUBA Platform. Developer’s Manual
- Create enum that will contain icons:
public enum MyIcon implements Icons.Icon {
INSTAGRAM("classpath:/myicon/instagram.png");
private String source;
MyIcon(String source) {
this.source = source;
}
@Override
public String source() {
return source;
}
@Override
public String iconName() {
return name();
}
}
- Add application property:
jmix.ui.icons-config=com.company.myapp.icon.MyIcon
- Use in the code:
iconBtn.setIconFromSet(MyIcon.INSTAGRAM);
<button id="iconBtn" icon="INSTAGRAM"/>