JengaSegmentedControlStyle

class JengaSegmentedControlStyle(val shape: Shape? = null, val segmentShape: Shape? = null, val segmentMinHeight: Dp? = null, val trackPadding: Dp? = null, val selectedElevation: Dp? = null, val textStyle: TextStyle? = null, val selectedTextStyle: TextStyle? = null, val colors: JengaSegmentedControlColors? = null)(source)

Theme-wide style for every JengaSegmentedControl, set through io.github.joelkanyi.jenga.theme.JengaComponentStyles.segmentedControl. A null value keeps Jenga's default; arguments passed to a call still win.

Constructors

Link copied to clipboard
constructor(shape: Shape? = null, segmentShape: Shape? = null, segmentMinHeight: Dp? = null, trackPadding: Dp? = null, selectedElevation: Dp? = null, textStyle: TextStyle? = null, selectedTextStyle: TextStyle? = null, colors: JengaSegmentedControlColors? = null)

Properties

Link copied to clipboard
Link copied to clipboard

the minimum segment height.

Link copied to clipboard

the shape of each segment; falls back to the outer shape.

Link copied to clipboard

shadow under the selected segment.

Link copied to clipboard

merged onto the label text style of the selected segment, so set only what changes, e.g. TextStyle(fontWeight = FontWeight.SemiBold).

Link copied to clipboard
val shape: Shape?

the outer shape.

Link copied to clipboard

the segment label text style.

Link copied to clipboard

padding inside the track, around the segments.

Functions

Link copied to clipboard
fun copy(shape: Shape? = this.shape, segmentShape: Shape? = this.segmentShape, segmentMinHeight: Dp? = this.segmentMinHeight, trackPadding: Dp? = this.trackPadding, selectedElevation: Dp? = this.selectedElevation, textStyle: TextStyle? = this.textStyle, selectedTextStyle: TextStyle? = this.selectedTextStyle, colors: JengaSegmentedControlColors? = this.colors): JengaSegmentedControlStyle