Object

ButtonDefaults

Contains the default values used by Button.

Source set: Android
public object ButtonDefaults

Contains the default values used by Button.

Functions

buttonColors

@Composable

public fun buttonColors(
    backgroundColor: ColorProvider = GlanceTheme.colors.primary,
    contentColor: ColorProvider = GlanceTheme.colors.onPrimary,
): ButtonColors

Creates a ButtonColors that represents the default background and content colors used in a Button.

Parameters

backgroundColor the background color of this Button
contentColor the content color of this Button

Last updated: