defaultButtonDrawableStyle

fun defaultButtonDrawableStyle(padding: PaddingValues = PaddingValues(0.dp), scale: ContentScale = ContentScale.Crop, defaultAlpha: Float = DefaultAlpha, pressedAlpha: Float = DefaultAlpha, disabledAlpha: Float = 0.6f, defaultColorFilter: ColorFilter? = null, pressedColorFilter: ColorFilter? = null, disabledColorFilter: ColorFilter? = ColorFilter.colorMatrix( ColorMatrix().apply { setToSaturation(0f) }, )): StreamButtonDrawableStyle

Composable that provides the default button drawable style.

Return

StreamButtonDrawableStyle

Parameters

padding

The padding applied to the drawable.

scale

The aspect ratio scale of the drawable.

defaultAlpha

The alpha value of the drawable when in default state.

pressedAlpha

The alpha value of the drawable when in pressed state.

disabledAlpha

The alpha value of the drawable when in disabled state.

defaultColorFilter

The color filter applied on the drawable when in default state.

pressedColorFilter

The color filter applied on the drawable when in pressed state.

disabledColorFilter

The color filter applied on the drawable when in disabled state.

See also