Source set: Common
public class TopAppBarColors(
public val containerColor: Color,
public val scrolledContainerColor: Color,
public val navigationIconContentColor: Color,
public val titleContentColor: Color,
public val actionIconContentColor: Color,
public val subtitleContentColor: Color,
)
Represents the colors used by a top app bar in different states. This implementation animates the container color according to the top app bar scroll state. It does not animate the leading, headline, or trailing colors.
Parameters
| containerColor | the color used for the background of this TopAppBar. Use Color.Transparent to have no 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 |
| subtitleContentColor | the content color used for a subtitle |
Functions
copy
Source set: Common
public fun copy(
containerColor: Color = this.containerColor,
scrolledContainerColor: Color = this.scrolledContainerColor,
navigationIconContentColor: Color = this.navigationIconContentColor,
titleContentColor: Color = this.titleContentColor,
actionIconContentColor: Color = this.actionIconContentColor,
subtitleContentColor: Color = this.subtitleContentColor,
): TopAppBarColors
Returns a copy of this TopAppBarColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
equals
Source set: Common
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int