kordamp/ikonli

Unable resolve org.kordamp.ikonli:ikonli-materialdesign2-pack icons via FXML's "iconLiteral" attribute.

Closed this issue · 2 comments

rk0cc commented

I found no icon in Material Design 2 can be render properly in SceneBuilder, a graphical FXML GUI editor. And it make me concern it also malfunction when running actual FXML program.

For example, applying heart icon failed when using Material Design 2 icon pack:

<FontIcon iconLiteral="mdi-heart" iconSize="24"/>

However, the same icon can be rendered normally when using Google's Material 2 Icon:

<FontIcon iconLiteral="mdal-favorite" iconSize="24"/>
rk0cc commented

P.S. I imported both icon pack like how #124 does and it confirmed that only org.kordamp.ikonli:ikonli-materialdesign2-pack icon can not be resolved. And even ikonli-fontawesome5-pack can be render without issue.

rk0cc commented

I'm apology that I using incorrect "iconLiteral" name from legacy instead of latest one.