TopAppBarSparkDefaults

Contains default values used for the top app bar implementations.

Functions

Link copied to clipboard
fun centerAlignedTopAppBarColors(containerColor: Color = SparkTheme.colors.surface, scrolledContainerColor: Color = SparkTheme.colors.applyTonalElevation( backgroundColor = containerColor, elevation = ElevationTokens.Level2, ), navigationIconContentColor: Color = contentColorFor(backgroundColor = containerColor), titleContentColor: Color = contentColorFor(backgroundColor = containerColor), actionIconContentColor: Color = SparkTheme.colors.onBackgroundVariant): TopAppBarColors

Creates a TopAppBarColors for CenterAlignedTopAppBars. The default implementation animates between the provided colors according to the Material Design specification.

Link copied to clipboard
fun largeTopAppBarColors(containerColor: Color = SparkTheme.colors.surface, scrolledContainerColor: Color = SparkTheme.colors.applyTonalElevation( backgroundColor = containerColor, elevation = ElevationTokens.Level2, ), navigationIconContentColor: Color = contentColorFor(backgroundColor = containerColor), titleContentColor: Color = contentColorFor(backgroundColor = containerColor), actionIconContentColor: Color = SparkTheme.colors.onBackgroundVariant): TopAppBarColors

Creates a TopAppBarColors for LargeTopAppBars. The default implementation interpolates between the provided colors as the top app bar scrolls according to the Material Design specification.

Link copied to clipboard
fun mediumTopAppBarColors(containerColor: Color = SparkTheme.colors.surface, scrolledContainerColor: Color = SparkTheme.colors.applyTonalElevation( backgroundColor = containerColor, elevation = ElevationTokens.Level2, ), navigationIconContentColor: Color = contentColorFor(backgroundColor = containerColor), titleContentColor: Color = contentColorFor(backgroundColor = containerColor), actionIconContentColor: Color = SparkTheme.colors.onBackgroundVariant): TopAppBarColors

Creates a TopAppBarColors for MediumTopAppBars. The default implementation interpolates between the provided colors as the top app bar scrolls according to the Material Design specification.

Link copied to clipboard
fun topAppBarColors(containerColor: Color = SparkTheme.colors.surface, scrolledContainerColor: Color = SparkTheme.colors.applyTonalElevation( backgroundColor = containerColor, elevation = ElevationTokens.Level2, ), navigationIconContentColor: Color = contentColorFor(backgroundColor = containerColor), titleContentColor: Color = contentColorFor(backgroundColor = containerColor), actionIconContentColor: Color = SparkTheme.colors.onBackgroundVariant): TopAppBarColors

Creates a TopAppBarColors for small TopAppBar. The default implementation animates between the provided colors according to the Material Design specification.