HazeStyle

data class HazeStyle(val tint: Color = Color.Unspecified, val blurRadius: Dp = Dp.Unspecified, val noiseFactor: Float = -1f)

A holder for the style properties used by Haze.

Can be set via Modifier.haze and Modifier.hazeChild.

Constructors

Link copied to clipboard
constructor(tint: Color = Color.Unspecified, blurRadius: Dp = Dp.Unspecified, noiseFactor: Float = -1f)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Radius of the blur.

Link copied to clipboard

Amount of noise applied to the content, in the range 0f to 1f. Anything outside of that range will be clamped.

Link copied to clipboard
val tint: Color

Default color to tint the blurred content. Should be translucent, otherwise you will not see the blurred content.