Skip to content

Maran23/svg-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG Bootstrap

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

Bootstrap

Features

  • 🎨 All Bootstrap 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-bootstrap</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

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

Usage

Pure Java

import tools.maran.svg.bootstrap.Bootstrap;

String path = Bootstrap.HOUSE.path();

With the SVG type

import tools.maran.svg.SVG;
import tools.maran.svg.bootstrap.Bootstrap;

SVG svg = Bootstrap.HOUSE;

Usage with SvgNode

Java

import tools.maran.svgnode.SvgNode;
import tools.maran.svg.bootstrap.Bootstrap;

SvgNode node = new SvgNode(Bootstrap.HOUSE, 32);

FXML

<?import tools.maran.svgnode.SvgNode?>
<?import tools.maran.svg.bootstrap.Bootstrap?>

<SvgNode size="32" svgColor="RED">
    <path>
        <Bootstrap fx:constant="HOUSE"/>
    </path>
</SvgNode>

Acknowledgements

This project includes SVG icon data from Bootstrap, licensed under MIT License.

About

A collection of all Bootstrap (https://icons.getbootstrap.com) SVG icon paths as Java enum constants – ready to be used in any Java program.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages