StyleDefaults

Properties

Link copied to clipboard
val None: Style

Functions

Link copied to clipboard
@Stable
fun alpha(alpha: Float = 1.0f, focusedAlpha: Float = alpha, hoveredAlpha: Float = alpha, pressedAlpha: Float = alpha, selectedAlpha: Float = alpha, disabledAlpha: Float = 0.6f, focusedSelectedAlpha: Float = focusedAlpha, pressedSelectedAlpha: Float = pressedAlpha, hoveredSelectedAlpha: Float = hoveredAlpha, focusedDisabledAlpha: Float = disabledAlpha, pressedDisabledAlpha: Float = disabledAlpha, hoveredDisabledAlpha: Float = disabledAlpha): Alpha

Creates an Alpha instance with configurable alpha values for different interaction states.

Link copied to clipboard
@Stable
fun borders(border: Border = BorderDefaults.None, focusedBorder: Border = border, hoveredBorder: Border = focusedBorder, pressedBorder: Border = focusedBorder, selectedBorder: Border = border, disabledBorder: Border = border, focusedSelectedBorder: Border = focusedBorder, pressedSelectedBorder: Border = pressedBorder, hoveredSelectedBorder: Border = hoveredBorder, focusedDisabledBorder: Border = disabledBorder, pressedDisabledBorder: Border = disabledBorder, hoveredDisabledBorder: Border = disabledBorder): Borders

Creates a Borders instance with configurable borders for different interaction states.

Link copied to clipboard
@Stable
fun colors(backgroundColor: Color = Color.Black, focusedBackgroundColor: Color = backgroundColor, pressedBackgroundColor: Color = backgroundColor, hoveredBackgroundColor: Color = backgroundColor, disabledBackgroundColor: Color = backgroundColor, selectedBackgroundColor: Color = backgroundColor, focusedSelectedBackgroundColor: Color = focusedBackgroundColor, pressedSelectedBackgroundColor: Color = pressedBackgroundColor, hoveredSelectedBackgroundColor: Color = hoveredBackgroundColor, focusedDisabledBackgroundColor: Color = disabledBackgroundColor, pressedDisabledBackgroundColor: Color = disabledBackgroundColor, hoveredDisabledBackgroundColor: Color = disabledBackgroundColor, contentColor: Color = Color.White, focusedContentColor: Color = contentColor, pressedContentColor: Color = contentColor, hoveredContentColor: Color = contentColor, disabledContentColor: Color = contentColor, selectedContentColor: Color = contentColor, focusedSelectedContentColor: Color = focusedContentColor, pressedSelectedContentColor: Color = pressedContentColor, hoveredSelectedContentColor: Color = hoveredContentColor, pressedDisabledContentColor: Color = disabledContentColor, focusedDisabledContentColor: Color = disabledContentColor, hoveredDisabledContentColor: Color = disabledContentColor): Colors
Link copied to clipboard
@Stable
fun scale(scale: Float = 1.0f, focusedScale: Float = scale, hoveredScale: Float = focusedScale, pressedScale: Float = focusedScale, selectedScale: Float = scale, disabledScale: Float = scale, focusedSelectedScale: Float = focusedScale, pressedSelectedScale: Float = pressedScale, hoveredSelectedScale: Float = hoveredScale, focusedDisabledScale: Float = disabledScale, pressedDisabledScale: Float = disabledScale, hoveredDisabledScale: Float = disabledScale): Scale

Creates a Scale instance with configurable scale values for different interaction states.

Link copied to clipboard
@Stable
fun shapes(shape: Shape = RectangleShape, focusedShape: Shape = shape, hoveredShape: Shape = focusedShape, pressedShape: Shape = focusedShape, selectedShape: Shape = shape, disabledShape: Shape = shape, focusedSelectedShape: Shape = focusedShape, pressedSelectedShape: Shape = pressedShape, hoveredSelectedShape: Shape = hoveredShape, focusedDisabledShape: Shape = disabledShape, pressedDisabledShape: Shape = disabledShape, hoveredDisabledShape: Shape = disabledShape): Shapes

Creates a Shapes instance with configurable shapes for different interaction states.

Link copied to clipboard
@Stable
fun style(colors: Colors = colors(), borders: Borders = borders(), scale: Scale = scale(), shapes: Shapes = shapes(), alpha: Alpha = alpha()): Style