ButtonDefaults
object ButtonDefaults
Contains the default values used by Button.
Summary
Public functions |
|
|---|---|
ButtonColors |
@ComposableCreates a |
Public functions
buttonColors
Added in 1.0.0
@Composable
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: ColorProvider = GlanceTheme.colors.primary |
the background color of this |
contentColor: ColorProvider = GlanceTheme.colors.onPrimary |
the content color of this |