A collection of all Material Design SVG icon paths as Java enum constants -- ready to be used in any Java program.
- 🎨 All Material Design icons as Java enums
- 🔗 No dependencies
- 📐 Designed as a companion library for SvgNode for use in JavaFX applications -- but works in any Java context
| Dependency | Version |
|---|---|
| Java | 25+ |
<dependency>
<groupId>tools.maran</groupId>
<artifactId>svg-materialdesign</artifactId>
<version>1.0.1</version>
</dependency>implementation 'tools.maran:svg-materialdesign:1.0.1'import tools.maran.svg.materialdesign.MDIInterface;
String path = MDIInterface.HOME.path();import tools.maran.svg.SVG;
import tools.maran.svg.materialdesign.MDIInterface;
import tools.maran.svg.materialdesign.MDIWorld;
SVG svg = MDIInterface.HOME;
// Switch from interface to world SVG.
svg =MDIWorld.HOME_CITY;Usage with SvgNode
import tools.maran.svgnode.SvgNode;
import tools.maran.svg.materialdesign.MDIInterface;
SvgNode node = new SvgNode(MDIInterface.HOME, 32);<?import tools.maran.svgnode.SvgNode?>
<?import tools.maran.svg.materialdesign.MDIInterface?>
<SvgNode size="32" color="RED">
<path>
<MDIInterface fx:constant="HOME"/>
</path>
</SvgNode>- Add
MDIWorld.EXIT_RUN, which did not render correctly before JavaFX 28-ea+11 (fixed in JavaFX)
- Initial release (Material Design Icons 7.4.47)
This project includes SVG icon data from Material Design, licensed under Apache 2.0 license.
