Haze Style
data class HazeStyle(val backgroundColor: Color = Color.Unspecified, val tints: List<HazeTint> = emptyList(), val blurRadius: Dp = Dp.Unspecified, val noiseFactor: Float = -1f, val fallbackTint: HazeTint = HazeTint.Unspecified)
A holder for the style properties used by Haze.
Can be set via hazeSource and hazeEffect.
Constructors
Properties
Link copied to clipboard
Color to draw behind the blurred content. Ideally should be opaque so that the original content is not visible behind. Typically this would be MaterialTheme.colorScheme.surface or similar.
Link copied to clipboard
Radius of the blur.
Link copied to clipboard
The HazeTint to use when Haze uses the fallback scrim functionality. The scrim used whenever HazeEffectScope.blurEnabled is resolved to false, either because the host platform does not support blurring, or it has been manually disabled. When the fallback tint is used, the tints provided in tints are ignored.
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.