Jenga Segmented Control Style
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.
Properties
Link copied to clipboard
the color set.
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
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