ButtonDefaults
public static class ButtonDefaults
Summary
Public fields |
|
|---|---|
static @NonNull ButtonDefaults |
Public methods |
|
|---|---|
final @NonNull ButtonColors |
filledButtonColors(@NonNull MaterialScope receiver)
|
final @NonNull ButtonColors |
filledTonalButtonColors(@NonNull MaterialScope receiver)
|
final @NonNull ButtonColors |
filledVariantButtonColors(@NonNull MaterialScope receiver)Alternative |
Public fields
Public methods
filledButtonColors
public final @NonNull ButtonColors filledButtonColors(@NonNull MaterialScope receiver)
ButtonColors for the high-emphasis button representing the primary, most important or most common action on a screen.
These colors are using ColorScheme.primary for background color and ColorScheme.onPrimary for content color from the given MaterialScope's ColorScheme.
filledTonalButtonColors
public final @NonNull ButtonColors filledTonalButtonColors(@NonNull MaterialScope receiver)
ButtonColors for the medium-emphasis button.
These colors are using ColorScheme.surfaceContainer for background color, ColorScheme.onSurface for content color and ColorScheme.primary for icon from the given MaterialScope's ColorScheme.
filledVariantButtonColors
public final @NonNull ButtonColors filledVariantButtonColors(@NonNull MaterialScope receiver)
Alternative ButtonColors for the high-emphasis button.
These colors are using ColorScheme.primaryContainer for background color and ColorScheme.onPrimaryContainer for content color from the given MaterialScope's ColorScheme.