JengaNavigationRailItemStyle

class JengaNavigationRailItemStyle(val minHeight: Dp? = null, val shape: Shape? = null, val contentPadding: PaddingValues? = null, val textStyle: TextStyle? = null, val selectedTextStyle: TextStyle? = null, val colors: JengaNavigationRailItemColors? = null)(source)

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

Constructors

Link copied to clipboard
constructor(minHeight: Dp? = null, shape: Shape? = null, contentPadding: PaddingValues? = null, textStyle: TextStyle? = null, selectedTextStyle: TextStyle? = null, colors: JengaNavigationRailItemColors? = null)

Properties

Link copied to clipboard
Link copied to clipboard

padding inside the item.

Link copied to clipboard

the minimum item height.

Link copied to clipboard

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

Link copied to clipboard
val shape: Shape?

the item shape.

Link copied to clipboard

the label text style.

Functions

Link copied to clipboard
fun copy(minHeight: Dp? = this.minHeight, shape: Shape? = this.shape, contentPadding: PaddingValues? = this.contentPadding, textStyle: TextStyle? = this.textStyle, selectedTextStyle: TextStyle? = this.selectedTextStyle, colors: JengaNavigationRailItemColors? = this.colors): JengaNavigationRailItemStyle