HazeMaterials

A class which contains functions to build HazeStyles 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.

The functions are marked as experimental, as the effects provided are still being tweaked.

Functions

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

A HazeStyle 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): HazeStyle

A HazeStyle 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): HazeStyle

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

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

A HazeStyle which implements a nearly opaque material.

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

A HazeStyle which implements a mostly translucent material.