Skip to content

Latest commit

 

History

History
130 lines (94 loc) · 4.32 KB

CHANGELOG.md

File metadata and controls

130 lines (94 loc) · 4.32 KB

1.11.0 (28 Mar 2022)

Dependency Updates

1.10.0 (21 Mar 2022)

Dependency Updates

1.9.0 (14 Mar 2022)

Dependency Updates

1.8.0 (14 Mar 2022)

Dependency Updates

1.7.0 (28 Feb 2022)

Dependency Updates

1.6.0 (25 Feb 2022)

Dependency Updates

1.5.2 (17 Feb 2022)

Bug Fixes

  • Fix incorrect hashtag(#) prefix.

1.5.1 (14 Feb 2022)

Enhancements

  • Minor logo color adjustments.

1.5.0 (14 Feb 2022)

Enhancements

  • Adjust the logo color according to the background color.

1.4.0 (13 Feb 2022)

Dependency Updates

1.3.0 (9 Feb 2022)

Dependency Updates

1.2.0 (1 Feb 2022)

New Features

1.1.0 (7 Dec 2021)

Enhancements

  • Supports Java 9 and above.

1.0.0 (3 Jul 2021)

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])