FluentMaterials

A class which contains functions to build HazeStyles which implement 'material' styles similar to those available on Windows platforms. The values used are taken from the WinUI 3 Figma file published by Microsoft.

The primary use case for using these is for when aiming for consistency with native UI (i.e. for when mixing Compose Multiplatform content alongside WinUI content).

Functions

Link copied to clipboard
fun accentAcrylicBase(accentColor: Color = MaterialTheme.colorScheme.primaryContainer, isDark: Boolean = MaterialTheme.colorScheme.surface.luminance() < 0.5f): HazeStyle

A HazeStyle which implements a translucent material used for the most translucent layer with accent color.

Link copied to clipboard
fun accentAcrylicDefault(accentColor: Color = MaterialTheme.colorScheme.primaryContainer, isDark: Boolean = MaterialTheme.colorScheme.surface.luminance() < 0.5f): HazeStyle

A HazeStyle which implements a translucent material used for the popup container background with accent color.

Link copied to clipboard
fun acrylicBase(isDark: Boolean = MaterialTheme.colorScheme.surface.luminance() < 0.5f): HazeStyle

A HazeStyle which implements a translucent material used for the most translucent layer.

Link copied to clipboard
fun acrylicDefault(isDark: Boolean = MaterialTheme.colorScheme.surface.luminance() < 0.5f): HazeStyle

A HazeStyle which implements a translucent material used for the popup container background.

Link copied to clipboard
fun mica(isDark: Boolean = MaterialTheme.colorScheme.surface.luminance() < 0.5f): HazeStyle

A HazeStyle which implements a translucent application background material.

Link copied to clipboard
fun micaAlt(isDark: Boolean = MaterialTheme.colorScheme.surface.luminance() < 0.5f): HazeStyle

A HazeStyle which implements a translucent application background material used for the tab experience.

Link copied to clipboard
fun thinAcrylic(isDark: Boolean = MaterialTheme.colorScheme.surface.luminance() < 0.5f): HazeStyle

A HazeStyle which implements a mostly translucent material.