PlaceholderDefaults
Contains default values used by Modifier.placeholder and PlaceholderHighlight.
Properties
Link copied to clipboard
The default InfiniteRepeatableSpec to use for fade.
Link copied to clipboard
The default InfiniteRepeatableSpec to use for shimmer.
Functions
Link copied to clipboard
fun PlaceholderDefaults.color(backgroundColor: Color = SparkTheme.colors.surface, contentColor: Color = contentColorFor(backgroundColor), contentAlpha: Float = 0.25f): Color
Returns the value used as the the color
parameter value on Modifier.placeholder.
Link copied to clipboard
fun PlaceholderDefaults.fadeHighlightColor(backgroundColor: Color = SparkTheme.colors.surface, alpha: Float = 0.3f): Color
Returns the value used as the the highlightColor
parameter value of PlaceholderHighlight.Companion.fade.
Link copied to clipboard
fun PlaceholderDefaults.shimmerHighlightColor(backgroundColor: Color = SparkTheme.colors.surface, alpha: Float = 0.3f): Color
Returns the value used as the the highlightColor
parameter value of PlaceholderHighlight.Companion.shimmer.