Object

RippleDefaults

Default values used by ripple.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
object RippleDefaults

Default values used by ripple.

Functions

rippleColor

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

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