HazeMaterials

A class which contains functions to build HazeBlurStyles which implement 'material-like' styles. It is inspired by the material APIs available in SwiftUI, but it makes no attempt to provide the exact effects provided in iOS.

Functions

Link copied to clipboard
fun regular(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A HazeBlurStyle which implements a somewhat opaque material. More opaque than thin, more translucent than thick.

Link copied to clipboard
fun thick(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A HazeBlurStyle which implements a mostly opaque material. More opaque than regular, more translucent than ultraThick.

Link copied to clipboard
fun thin(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A HazeBlurStyle which implements a translucent material. More opaque than ultraThin, more translucent than regular.

Link copied to clipboard
fun ultraThick(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A HazeBlurStyle which implements a nearly opaque material.

Link copied to clipboard
fun ultraThin(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A HazeBlurStyle which implements a mostly translucent material.