harmonizeWithPrimary

open fun harmonizeWithPrimary(@NonNull context: Context, @ColorInt colorToHarmonize: Int): Int

Returns the color int of the given color harmonized with the context theme's colorPrimary.

Parameters

context

The target context.

colorToHarmonize

The color to harmonize.