toLegacyColors

Get Material3 ColorScheme as Material Colors. Useful to commonize theming with old and new Composables.

Return

Material Colors from a provided ColorScheme.

Parameters

useDark

whether the provided ColorScheme should be converted to dark Material Colors.