ButtonDefaults

object ButtonDefaults


Default values used for Button.

Summary

Public functions

PaddingValues

Default content padding used for a Button with the specified buttonSize.

Color

Returns the focused background Color for a button derived from the provided baseColor.

Public functions

contentPadding

Added in 1.0.0-alpha21
@Composable
fun contentPadding(buttonSize: ButtonSize): PaddingValues

Default content padding used for a Button with the specified buttonSize.

focusedColor

Added in 1.0.0-alpha21
@Composable
fun focusedColor(baseColor: Color = GlimmerTheme.colors.surface): Color

Returns the focused background Color for a button derived from the provided baseColor.

Adjusts the provided baseColor so that it is suitable for use as a focused button background.

Parameters
baseColor: Color = GlimmerTheme.colors.surface

the base Color of the button

Returns
Color

the focused button background Color, adjusted to improve content contrast