Skip to content

Accept StyleBuilderApplicable as an argument to component constructors #432

@kezz

Description

@kezz

With the addition of both this interface and the useful TextDecorationAndState class, it would be nice to have methods that accept a varargs of StyleBuilderApplicable instances to allow for code like:

Component.text("Hello, world!", NamedTextColor.RED, TextDecoration.ITALIC.as(false))

For a future, breaking release, such a method could replace all component constructors that accept varying style elements, thus allowing for a cleaner codebase.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions