Skip to content

Maran23/svg-materialdesign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG Material Design

A collection of all Material Design SVG icon paths as Java enum constants – ready to be used in any Java program.

Material Design

Features

  • 🎨 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

Requirements

Dependency Version
Java 25+

Installation

Maven

<dependency>
    <groupId>tools.maran</groupId>
    <artifactId>svg-materialdesign</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

implementation 'tools.maran:svg-materialdesign:1.0.0'

Usage

Pure Java

import tools.maran.svg.materialdesign.MDIInterface;

String path = MDIInterface.HOME.path();

With the SVG type

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

Java

import tools.maran.svgnode.SvgNode;
import tools.maran.svg.materialdesign.MDIInterface;

SvgNode node = new SvgNode(MDIInterface.HOME, 32);

FXML

<?import tools.maran.svgnode.SvgNode?>
<?import tools.maran.svg.materialdesign.MDIInterface?>

<SvgNode size="32" svgColor="RED">
    <path>
        <MDIInterface fx:constant="HOME"/>
    </path>
</SvgNode>

Acknowledgements

This project includes SVG icon data from Material Design, licensed under Apache 2.0 license.

About

A collection of all Material Design (https://pictogrammers.com/library/mdi/) SVG icon paths as Java enum constants – ready to be used in any Java program.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages