Skip to content

Releases: silentsoft/badge4j

v1.3.0

09 Feb 01:08
Compare
Choose a tag to compare

Dependency Updates

v1.2.0

31 Jan 16:40
Compare
Choose a tag to compare

New Features

v1.1.0

07 Dec 09:59
Compare
Choose a tag to compare

Enhancements

  • Supports Java 9 and above.

v1.0.0

03 Jul 06:13
Compare
Choose a tag to compare

Usage

String svg = Badge.builder().label("hello").message("world").build();

Available builder options

Badge.builder()
     .style(Style) /* Flat(default), FlatSquare, ForTheBadge, Plastic, Social */
     .label(String)
     .message(String)
     .color(String)
     .labelColor(String)
     .logo(String) /* data:image/svg+xml;base64,.. */
     .logoWidth(int)
     .links(String[])
     .build();

Styles

Colors

  • Named color by shields.io

  • Any valid CSS color

    • named color
      • etc.
    • hexadecimal numbers
      • etc.
    • rgb[a](red, green, blue[, opacity])
    • cmyk[a](cyan, magenta, yellow, black[, opacity])
    • hsl[a](hue, saturation, lightness[, opacity])