Package-level declarations

Functions

Link copied to clipboard
fun AdaptiveWidget(kvadrant: @Composable () -> Unit, material: @Composable () -> Unit)

Renders kvadrant on a Metro surface and material anywhere else.

Link copied to clipboard

A Material Button squared and stripped of its container's own colour opinions.

Link copied to clipboard
fun KvadrantIsland(typography: KvadrantTypography, content: @Composable () -> Unit)

Wraps content in a KvadrantTheme derived from the surrounding MaterialTheme — the reverse of KvadrantMaterialAdapter, and inherently the more partial of the two.

Link copied to clipboard

Raises a MaterialTheme derived from the surrounding KvadrantTheme, so a consumer's existing Material widgets stop looking foreign inside a Metro application.

Link copied to clipboard
fun KvadrantMaterialButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, content: @Composable () -> Unit)

A Material Button, squared, in Metro's colours, with the border a Metro button has.

Link copied to clipboard

The three Material components the adapter cannot reach by theming, given the shape they need.

Link copied to clipboard
fun KvadrantMaterialSlider(value: Float, onValueChange: (Float) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true)

A Material Slider with Metro's colours applied, since the colours are the half that can be.

Link copied to clipboard
fun KvadrantMaterialSwitch(checked: Boolean, onCheckedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true)

A Material Switch with Metro's colours, for the same reason.

Link copied to clipboard

A Material Slider in Metro's colours.

Link copied to clipboard

A Material Switch in Metro's colours.

Link copied to clipboard

A Metro palette derived from a Material one, for dropping a Kvadrant island into a Material application.