Skip to content

[pull] develop from mikepenz:develop - #20

Merged
pull[bot] merged 3 commits into
wsnchristopher:developfrom
mikepenz:develop
Aug 20, 2026
Merged

[pull] develop from mikepenz:develop#20
pull[bot] merged 3 commits into
wsnchristopher:developfrom
mikepenz:develop

Conversation

@pull

@pull pull Bot commented Aug 20, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

renovate-mike Bot and others added 3 commits August 20, 2026 08:19
Co-authored-by: renovate-mike[bot] <274037420+renovate-mike[bot]@users.noreply.github.com>
…riant colors

Since v15 the license chips in the Traditional row are colored per license via
the `LicenseHueResolver` — a tinted background with a matching label. There was
no way to opt out into a single fixed color pair: `LicenseHueResolver.None` fell
back to `actionFilledContainer` at the badge alpha while the label used
`actionFilledContent` (e.g. `onPrimary`), which is unreadable on the tint.

Adds two opt-in tokens to `VariantColors`, both defaulting to
`Color.Unspecified` so the dynamic behavior is unchanged. Setting them together
with `LicenseHueResolver.None` restores the v14 look (solid `primary` chip with
`onPrimary` label):

    variantColors = LibraryDefaults.m3VariantColors(
        licenseHueResolver = LicenseHueResolver.None,
        licenseBadgeContainer = MaterialTheme.colorScheme.primary,
        licenseBadgeContent = MaterialTheme.colorScheme.onPrimary,
    )

- threaded through `defaultVariantColors`, `m2VariantColors`, `m3VariantColors`
- `PreviewLibrariesStaticLicenseChips` screenshot tests for M2 and M3
- README: "Static license chip colors" section
- MIGRATION.md: `colors: LibraryColors` only styles the license dialog in v15 —
  it no longer feeds the list rows, which is what the previous wording implied

Note: the mangled names of the `*VariantColors` factories change, so this is
binary-breaking for those functions (source-compatible).

Relates to #1434
feat(compose): add `licenseBadgeContainer` / `licenseBadgeContent` variant colors
@pull pull Bot locked and limited conversation to collaborators Aug 20, 2026
@pull pull Bot added the ⤵️ pull label Aug 20, 2026
@pull
pull Bot merged commit 98eeb75 into wsnchristopher:develop Aug 20, 2026
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant