style
fun style(backgroundColor: Color = Color.Unspecified, tint: Color = tint(backgroundColor), blurRadius: Dp = this.blurRadius, noiseFactor: Float = this.noiseFactor): HazeStyle
Default HazeStyle for usage with Modifier.haze.
Parameters
background Color
The background color of this layout. Typically this would be MaterialTheme.colorScheme.surface or similar. This is just a convenience parameter for setting tint with an appropriate translucent color.
tint
Default color to tint the blurred content. Should be translucent, otherwise you will not see the blurred content.
blur Radius
Radius of the blur.
noise Factor
Amount of noise applied to the content, in the range 0f to 1f. Anything outside of that range will be clamped.