JengaSnackbarStyle

class JengaSnackbarStyle(val shape: Shape? = null, val contentPadding: PaddingValues? = null, val hostPadding: PaddingValues? = null, val messageStyle: TextStyle? = null, val actionStyle: TextStyle? = null, val colors: JengaSnackbarColors? = null)(source)

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

Constructors

Link copied to clipboard
constructor(shape: Shape? = null, contentPadding: PaddingValues? = null, hostPadding: PaddingValues? = null, messageStyle: TextStyle? = null, actionStyle: TextStyle? = null, colors: JengaSnackbarColors? = null)

Properties

Link copied to clipboard

the action label text style.

Link copied to clipboard

the color set.

Link copied to clipboard

padding inside the snackbar.

Link copied to clipboard

space around the snackbar inside a JengaSnackbarHost.

Link copied to clipboard

the message text style.

Link copied to clipboard
val shape: Shape?

the snackbar shape.

Functions

Link copied to clipboard
fun copy(shape: Shape? = this.shape, contentPadding: PaddingValues? = this.contentPadding, hostPadding: PaddingValues? = this.hostPadding, messageStyle: TextStyle? = this.messageStyle, actionStyle: TextStyle? = this.actionStyle, colors: JengaSnackbarColors? = this.colors): JengaSnackbarStyle