defaultFromSurface

fun defaultFromSurface(colorScheme: ColorScheme = MaterialTheme.colorScheme): PopupMenuColors

Creates a PopupMenuColors with colors derived from the surface color scheme.

Return

A PopupMenuColors with appropriate background and foreground colors.

Parameters

colorScheme

The color scheme to derive colors from. Defaults to the current MaterialTheme.colorScheme.