0.1.0
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 everyModifier().someModifier(...)withModifier.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.