Package-level declarations

Types

Link copied to clipboard
open class ColorEntry(val name: String, val color: Color)
Link copied to clipboard
class ColorPalette(initialEntries: List<ColorEntry> = emptyList()) : Collection<ColorEntry>
Link copied to clipboard
class CustomColor(val name: String, var color: Color) : ColorEntry
Link copied to clipboard
sealed interface DeviceShape

Represents the shape of a device.

Link copied to clipboard
sealed interface DeviceType

Represents different types of devices with their dimensions and shapes.

Link copied to clipboard
class DynamicColor(val name: String, var color: Color) : ColorEntry

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun DeviceSimulation(deviceType: DeviceType, color: Color, useDarkTheme: Boolean, style: PaletteStyle, contrast: Contrast, selectedColor: Color, onColorSelected: (Color) -> Unit, selectedStateIndicator: @Composable BoxScope.(isSelected: Boolean) -> Unit? = null)

A composable function that simulates different devices with customizable appearance.