TopAppBarColors

constructor(containerColor: Color, scrolledContainerColor: Color, navigationIconContentColor: Color, titleContentColor: Color, actionIconContentColor: Color, subtitleContentColor: Color)

create an instance with arbitrary colors, see TopAppBarColors for a factory method using the default material3 spec

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


constructor(containerColor: Color, scrolledContainerColor: Color, navigationIconContentColor: Color, titleContentColor: Color, actionIconContentColor: Color)

Deprecated

Use the TopAppBarColors constructor with subtitleContentColor

Replace with

TopAppBarColors(containerColor, scrolledContainerColor,navigationIconContentColor, titleContentColor, actionIconContentColor, subtitleContentColor)