Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.53 KB

README.MD

File metadata and controls

52 lines (41 loc) · 1.53 KB

version

MaterialDesignFont for JavaFx

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.

Download

MaterialDesignFontFX is available on Maven Central.

Maven

<dependency>
    <groupId>fr.flowarg</groupId>
    <artifactId>materialdesignfontfx</artifactId>
    <version>VERSION</version>
</dependency>

Gradle

dependencies {
    implementation 'fr.flowarg:materialdesignfontfx:VERSION'
}

Usage

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
    }
}

Generator

The Generator subproject aims to generate the MaterialDesignIcon class with the provided _variables.scss file.