Material3
fun GlassStyle.Companion.Material3(containerColor: Color = MaterialTheme.colorScheme.surface, tint: Color? = null): GlassStyle
Creates a Glass Style with a Material 3 surface background and optional tint.
The default containerColor comes from the current MaterialTheme. A null tint omits the tint write, preserving any inherited tint. The returned Style is reused while containerColor and tint are unchanged.
fun GlassStyle.Companion.Material3(containerColor: Color = MaterialTheme.colorScheme.surface, tint: Color? = null, block: GlassStyleScope.() -> Unit): GlassStyle
Creates a Glass Style with a Material 3 surface background, optional tint, and additional Style writes.
The default containerColor comes from the current MaterialTheme. A null tint omits the tint write, preserving any inherited tint. The supplied values are recorded before block, so the block can override them without changing unrelated inherited Style writes.