defaultForSchemeColor

fun defaultForSchemeColor(colorScheme: ColorScheme, backGroundColor: Color): PopupMenuColors

Pass any of the ColorScheme's "onXXXX" colors of colorScheme for backGroundColor. So you could use e.g. ColorScheme.onPrimary for backGroundColor, and this function will create a PopupMenuColors object with the matching content color (ColorScheme.primary for our example).

Parameters

colorScheme

The color scheme to use for the the PopupMenu

backGroundColor

The color to use for the foreground (menu item texts and icons)