Package-level declarations

JengaVerdictBar: an amount with an eyebrow label, optional progress and captions, in a tone.

Types

Link copied to clipboard
class JengaVerdictBarColors(val fill: Brush, val amount: Color, val accent: Color, val muted: Color, val trackFill: Color, val track: Color, val trackComplete: Color = trackFill)

Resolved colors for a JengaVerdictBar. Override via JengaVerdictBarDefaults.colors.

Link copied to clipboard

Defaults and token mappings for JengaVerdictBar.

Link copied to clipboard
class JengaVerdictSublines(val start: String, val end: String? = null)

The two bottom captions of a JengaVerdictBar: a start line and an optional end line, bundled so the honest pair reads as one footnote.

Link copied to clipboard

The verdict a JengaVerdictBar conveys; drives its color from theme tokens.

Functions

Link copied to clipboard
fun JengaVerdictBar(amount: String, modifier: Modifier = Modifier, amountSuffix: String? = null, tone: JengaVerdictTone = JengaVerdictTone.Positive, label: String? = null, progress: Float? = null, sublines: JengaVerdictSublines? = null, action: JengaAction? = null, colors: JengaVerdictBarColors = JengaVerdictBarDefaults.colors(tone), shape: Shape = JengaVerdictBarDefaults.shape, contentPadding: PaddingValues = JengaVerdictBarDefaults.contentPadding, trackHeight: Dp = JengaVerdictBarDefaults.TrackHeight, amountStyle: TextStyle = JengaVerdictBarDefaults.amountStyle, amountSuffixStyle: TextStyle = JengaVerdictBarDefaults.amountSuffixStyle)

A full-width verdict banner: a tone-colored band with an optional label, a big amount (with optional amountSuffix), an optional progress bar, and an optional pair of honest sublines. A one-glance "where do I stand" summary (budget, goal, quota). Generic; numbers and copy are the caller's, color follows tone.