getNewColor

open fun getNewColor(currentColor: Color, current: Colors): Color?

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

Since

1.8.3

See also