getNewPalette

open fun getNewPalette(currentPalette: Colors.Palette?, current: Colors): Colors.Palette?

Calculate and return the new Palette for the given currentPalette based on the current and new Colors. This is useful for theming, where you want to change the palette of a component based on the current theme. If the currentPalette is not found in the current Colors, it will return null.

Since

1.8.3

See also