HazeDefaults

Default values for the hazeSource and hazeEffect modifiers.

Properties

Link copied to clipboard

Default blur radius. Larger values produce a stronger blur effect.

Link copied to clipboard
const val drawContentBehind: Boolean = false
Link copied to clipboard
const val noiseFactor: Float = 0.15f

Noise factor.

Link copied to clipboard
const val tintAlpha: Float = 0.7f

Default alpha used for the tint color. Used by the tint function.

Functions

Link copied to clipboard

Default values for HazeEffectScope.blurEnabled. This function only returns true on platforms where we know blurring works reliably.

Link copied to clipboard
fun style(backgroundColor: Color, tint: HazeTint = tint(backgroundColor), blurRadius: Dp = this.blurRadius, noiseFactor: Float = this.noiseFactor): HazeStyle

Default HazeStyle for usage with Modifier.hazeSource.

Link copied to clipboard
fun tint(color: Color): HazeTint

Default builder for the 'tint' color. Transforms the provided color.