IconButtonDefaults

Contains the default values used by all icon button types.

Properties

Link copied to clipboard
@get:Composable
val filledShape: Shape

Default shape for a filled icon button.

Link copied to clipboard
@get:Composable
val outlinedShape: Shape

Default shape for an outlined icon button.

Functions

Link copied to clipboard
@Composable
fun filledIconButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = contentColorFor(containerColor), disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = Color.Unspecified): IconButtonColors

Creates a IconButtonColors that represents the default colors used in a FilledIconButton.

Link copied to clipboard
@Composable
fun filledIconToggleButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = Color.Unspecified, disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = Color.Unspecified, checkedContainerColor: Color = Color.Unspecified, checkedContentColor: Color = contentColorFor(checkedContainerColor)): IconToggleButtonColors

Creates a IconToggleButtonColors that represents the default colors used in a FilledIconToggleButton.

Link copied to clipboard
@Composable
fun filledTonalIconButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = contentColorFor(containerColor), disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = Color.Unspecified): IconButtonColors

Creates a IconButtonColors that represents the default colors used in a FilledTonalIconButton.

Link copied to clipboard
@Composable
fun filledTonalIconToggleButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = contentColorFor(containerColor), disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = Color.Unspecified, checkedContainerColor: Color = Color.Unspecified, checkedContentColor: Color = Color.Unspecified): IconToggleButtonColors

Creates a IconToggleButtonColors that represents the default colors used in a FilledTonalIconToggleButton.

Link copied to clipboard
@Composable
fun iconButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(alpha = IconButtonTokens.DisabledIconOpacity)): IconButtonColors

Creates a IconButtonColors that represents the default colors used in a IconButton.

Link copied to clipboard
@Composable
fun iconToggleButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(alpha = IconButtonTokens.DisabledIconOpacity), checkedContainerColor: Color = Color.Unspecified, checkedContentColor: Color = Color.Unspecified): IconToggleButtonColors

Creates a IconToggleButtonColors that represents the default colors used in a IconToggleButton.

Link copied to clipboard
@Composable
fun outlinedIconButtonBorder(enabled: Boolean): BorderStroke

Represents the BorderStroke for an OutlinedIconButton, depending on its enabled state.

Link copied to clipboard
@Composable
fun outlinedIconButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(alpha = OutlinedIconButtonTokens.DisabledOpacity)): IconButtonColors

Creates a IconButtonColors that represents the default colors used in a OutlinedIconButton.

Link copied to clipboard
@Composable
fun outlinedIconToggleButtonBorder(enabled: Boolean, checked: Boolean): BorderStroke?

Represents the BorderStroke for an OutlinedIconButton, depending on its enabled and checked state.

Link copied to clipboard
@Composable
fun outlinedIconToggleButtonColors(containerColor: Color = Color.Unspecified, contentColor: Color = LocalContentColor.current, disabledContainerColor: Color = Color.Unspecified, disabledContentColor: Color = contentColor.copy(alpha = OutlinedIconButtonTokens.DisabledOpacity), checkedContainerColor: Color = Color.Unspecified, checkedContentColor: Color = contentColorFor(checkedContainerColor)): IconToggleButtonColors

Creates a IconToggleButtonColors that represents the default colors used in a OutlinedIconToggleButton.