Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

1.2.0 — Advanced Customization Update

Choose a tag to compare

@fthomys fthomys released this 12 Jun 17:13
· 12 commits to master since this release

This release introduces extensive customization capabilities for the level card rendering system. Nearly every visual and layout aspect of the card can now be controlled via the new CardConfiguration options.

New Features

  • Extended CardConfiguration builder with support for:

    • avatarConfig(size, margin)
    • textMargin(margin)
    • textOffsets(usernameYOffset, rankLevelYOffset, xpTextYOffset, timeTextYOffset)
    • progressBarConfig(height, yOffset, margin)
    • fontSizes(username, rankLevel, xp, time)
    • backgroundConfig(shadowBlur, cornerRadius)
  • Full input validation on all configuration parameters

  • Support for fully custom configuration:

    • JDALevelCard.Builder.customConfig(config: CardConfiguration)
    • Builder-level overrides (e.g. width, height, accentColor) are still applied if set
  • Example usage added to JDALevelCardExample.kt

  • README updated with an "Advanced Customization" section

Notes

This update does not introduce breaking changes. Existing behavior and default rendering will remain unchanged if the new options are not used.