Skip to content

0.1.0

Choose a tag to compare

@sakethpathike sakethpathike released this 09 May 05:38
· 10 commits to master since this release

Breaking changes

  • Modifiers now follow the Compose-style design: no more instantiating a new class for every modifier. Kapsule internally chains modifier calls and produces the expected CSS.
    • Modifier().someModifier(...) is no longer supported—replace every Modifier().someModifier(...) with Modifier.someModifier(...) to build successfully.

Before (up to v0.0.6):

Text(
    text = "x", modifier = Modifier().color("#CAC4D0")
)
Text(
    text = "y", modifier = Modifier().color("#1C1B1F").backgroundColor("#CAC4D0")
)

Now (v0.1.0 and later):

Text(
    text = "x",
    modifier = Modifier.color("#CAC4D0")
)
Text(
    text = "y",
    modifier = Modifier.color("#1C1B1F").backgroundColor("#CAC4D0")
)

Every Modifier.someModifier(...) invocation creates a new modifier internally, keeping each styling call unique.