getTabBarColors

fun getTabBarColors(backgroundColor: Color = MaterialTheme.colorScheme.background, tabColor: Color = Color.Transparent, selectedTabColor: Color = MaterialTheme.colorScheme.secondaryContainer, textColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, selectedTextColor: Color = MaterialTheme.colorScheme.onSecondaryContainer): TabBarColors

Creates TabBarColors from the Material theme for the document tab bar.

Return

The TabBarColors.

Parameters

backgroundColor

Background of the bar behind the tabs.

tabColor

Fill of an unselected tab.

selectedTabColor

Fill of the selected tab.

textColor

Title color of an unselected tab.

selectedTextColor

Title color of the selected tab.