buttonColors

fun buttonColors(backgroundColor: Color = Color.Unspecified, contentColor: Color = Color.Unspecified, disabledBackgroundColor: Color = Color.Unspecified, disabledContentColor: Color = Color.Unspecified): ButtonColors

Creates a ButtonColors instance to define the background and content colors for an icon button.

Return

A ButtonColors instance with the specified colors.

Parameters

backgroundColor

The background color of the button when it is enabled. Defaults to Color.Unspecified.

contentColor

The content (e.g., icon) color of the button when it is enabled. Defaults to Color.Unspecified.

disabledBackgroundColor

The background color of the button when it is disabled. Defaults to Color.Unspecified.

disabledContentColor

The content color of the button when it is disabled. Defaults to Color.Unspecified.