itemColors

@Composable
fun itemColors(): MenuItemColors

Creates a MenuItemColors that represents the default text and icon colors used in a DropdownMenuItemContent.


@Composable
fun itemColors(textColor: Color = Color.Unspecified, leadingIconColor: Color = Color.Unspecified, trailingIconColor: Color = Color.Unspecified, disabledTextColor: Color = Color.Unspecified, disabledLeadingIconColor: Color = Color.Unspecified, disabledTrailingIconColor: Color = Color.Unspecified): MenuItemColors

Creates a MenuItemColors that represents the default text and icon colors used in a DropdownMenuItemContent.

Parameters

textColor

the text color of this DropdownMenuItemContent when enabled

leadingIconColor

the leading icon color of this DropdownMenuItemContent when enabled

trailingIconColor

the trailing icon color of this DropdownMenuItemContent when enabled

disabledTextColor

the text color of this DropdownMenuItemContent when not enabled

disabledLeadingIconColor

the leading icon color of this DropdownMenuItemContent when not enabled

disabledTrailingIconColor

the trailing icon color of this DropdownMenuItemContent when not enabled