configurePaletteonTheme

Configures the current PaletteonTheme using a DSL-style builder.

This function modifies the theme in the current composition using the provided DSL-style builder block. The updated theme is applied to the composition state.

Parameters

block

A lambda function where you can configure the theme using the PaletteonTheme.Builder receiver.


Configures a new PaletteonTheme using a DSL-style builder.

This function modifies the given PaletteonTheme instance using the provided DSL-style builder block and returns the updated theme.

Return

The newly built PaletteonTheme with applied modifications.

Parameters

theme

The current PaletteonTheme instance to be modified.

block

A lambda function where you can configure the theme using the PaletteonTheme.Builder receiver.