Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ComponentBuider#decorations(Map)
This commit introduces a new decorations method to the component builder that takes in a map of text decorations and their state. This method already exists on the Component interface but was previously missing on the respective builder. As the style builder stores the decorations in individual fields and hence cannot natively work with the map layout, the method was implemented as a default method on the interface and simply delegates the map entriess to the normal decorate methods. The main motivation for the addition of this method is the easy application of a preset map of decorations.
- Loading branch information