🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

RippleThemeConfiguration

The overall ripple theme in use by all built-in components and ripple.

Source set: Common
public class RippleThemeConfiguration(public val focus: Focus)

The overall ripple theme in use by all built-in components and ripple.

This is controlled by LocalRippleThemeConfiguration.

The ripple configuration is resolved as follows:

    including whether the focus indication is drawn by inset focus rings.

  • LocalRippleThemeConfiguration provides the highest-level theming configuration for ripples,
  • including disabling ripples and their indications. This takes next highest priority.

  • LocalRippleConfiguration provides hierarchical per-ripple configuration for ripple,
  • components.

  • ripple parameters allow specifying configuration for individual indication callsites in

Parameters

focus the themable configuration for the focus indication.

Members

Focus

Source set: Common
public sealed class Focus private constructor()

The configuration options for the focus indication for RippleThemeConfiguration.

Members

Opacity

Source set: Common
public object Opacity : Focus()

An opacity-based focus indication.

InsetRing

Source set: Common
public class InsetRing(
            public val outerStrokeInset: Dp,
            public val outerStrokeWidth: Dp,
            public val innerStrokeInset: Dp,
            public val innerStrokeWidth: Dp,
        ) : Focus()

An inset ring focus indication. This is drawn using two strokes, an outer stroke and an inner stroke. The inner stroke is drawn first, followed by the outer stroke.

As this describes the overall ripple theme, and the inset ring colors are use-site specific, the colors are configured in RippleConfiguration.Focus.InsetRing instead.

Parameters

outerStrokeInset the amount the outer stroke is inset
outerStrokeWidth the width of the outer stroke
innerStrokeInset the amount the inner stroke is inset
innerStrokeWidth the width of the inner stroke

Functions

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int