kordamp / ikonli

Icon packs for Java applications
http://kordamp.org/ikonli/
Apache License 2.0
500 stars 50 forks source link

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

Closed rk0cc closed 2 years ago

rk0cc commented 2 years ago

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 2 years ago

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 2 years ago

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