Start native apps faster with the Composables CLI ->
Object

RippleDefaults

Default values used by ripple.

Source set: Common
public object RippleDefaults

Default values used by ripple.

Functions

rippleColor

Source set: Common
public fun rippleColor(contentColor: Color, lightTheme: Boolean): Color

Represents the default color that will be used for a ripple if a color has not been explicitly set on the ripple instance.

Parameters

contentColor the color of content (text or iconography) in the component that contains the ripple.
lightTheme whether the theme is light or not

rippleAlpha

Source set: Common
public fun rippleAlpha(contentColor: Color, lightTheme: Boolean): RippleAlpha

Represents the default RippleAlpha that will be used for a ripple to indicate different states.

Parameters

contentColor the color of content (text or iconography) in the component that contains the ripple.
lightTheme whether the theme is light or not