centerAlignedTopAppBarColors
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.
Return
the resulting TopAppBarColors used for the top app bar
Parameters
containerColor
the container color
scrolledContainerColor
the container color when content is scrolled behind it
navigationIconContentColor
the content color used for the navigation icon
titleContentColor
the content color used for the title
actionIconContentColor
the content color used for actions