This is the updated version of the Jensd's lib.
The icons are made by the Pictogrammers (mdi icons collection). These project is basically a port of the web version for JavaFx.
It's made for Java 17.
MaterialDesignFontFX is available on Maven Central.
<dependency>
<groupId>fr.flowarg</groupId>
<artifactId>materialdesignfontfx</artifactId>
<version>VERSION</version>
</dependency>
dependencies {
implementation 'fr.flowarg:materialdesignfontfx:VERSION'
}
import fr.flowarg.materialdesignfontfx.MaterialDesignIcon;
import fr.flowarg.materialdesignfontfx.MaterialDesignIconView;
public class Main extends Application
{
@Override
public void start(Stage primaryStage)
{
// scene logic
var accountIcon = new MaterialDesignIconView<>(MaterialDesignIcon.A.ACCOUNT);
var yinYangIcon = new MaterialDesignIconView<>(MaterialDesignIcon.Y.YIN_YANG);
// add the icons to your UI
}
}
The Generator subproject aims to generate the MaterialDesignIcon
class with the provided _variables.scss file.