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:
- LocalRippleThemeConfiguration provides the highest-level theming configuration for ripples,
- LocalRippleConfiguration provides hierarchical per-ripple configuration for ripple,
- ripple parameters allow specifying configuration for individual indication callsites in
including whether the focus indication is drawn by inset focus rings.
including disabling ripples and their indications. This takes next highest priority.
components.
Parameters
| focus | the themable configuration for the focus indication. |
Members
Focus
public sealed class Focus private constructor()
The configuration options for the focus indication for RippleThemeConfiguration.
Members
Opacity
public object Opacity : Focus()
An opacity-based focus indication.
InsetRing
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
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int