Skip to content

v2.2.0

Latest

Choose a tag to compare

@tomgould tomgould released this 18 Oct 15:03
· 6 commits to master since this release

Added

  • ComponentTextStyle::setConditional() and addConditional() - conditional variants of a component text style (for example a dark mode text color), serialized as conditional. Entries are ConditionalComponentTextStyle / ConditionalTextStyle objects or arrays
  • TextComponent::getTextStyle() returns the text style name set on a text component
  • Component::getStyle() returns the component style name, and Container::getComponents() the child components