TabDefaults
object TabDefaults
Summary
Public functions |
|
|---|---|
TabColors |
@Composable
|
TabColors |
@Composable
|
Public functions
pillIndicatorTabColors
@Composable
fun pillIndicatorTabColors(
contentColor: Color = LocalContentColor.current,
inactiveContentColor: Color = contentColor.copy(alpha = 0.4f),
selectedContentColor: Color = MaterialTheme.colorScheme.onPrimaryContainer,
focusedContentColor: Color = MaterialTheme.colorScheme.surfaceVariant,
focusedSelectedContentColor: Color = focusedContentColor,
disabledContentColor: Color = contentColor,
disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f),
disabledSelectedContentColor: Color = selectedContentColor
): TabColors
Tab's content colors to in conjunction with pill indicator
| Parameters | |
|---|---|
contentColor: Color = LocalContentColor.current |
applied when the any of the other tabs is focused |
inactiveContentColor: Color = contentColor.copy(alpha = 0.4f) |
the default color of the tab's content when none of the tabs are focused |
selectedContentColor: Color = MaterialTheme.colorScheme.onPrimaryContainer |
applied when the current tab is selected |
focusedContentColor: Color = MaterialTheme.colorScheme.surfaceVariant |
applied when the current tab is focused |
focusedSelectedContentColor: Color = focusedContentColor |
applied when the current tab is both focused and selected |
disabledContentColor: Color = contentColor |
applied when any of the other tabs is focused and the current tab is disabled |
disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f) |
applied when the current tab is disabled and none of the tabs are focused |
disabledSelectedContentColor: Color = selectedContentColor |
applied when the current tab is disabled and selected |
underlinedIndicatorTabColors
@Composable
fun underlinedIndicatorTabColors(
contentColor: Color = LocalContentColor.current,
inactiveContentColor: Color = contentColor.copy(alpha = 0.4f),
selectedContentColor: Color = MaterialTheme.colorScheme.onPrimaryContainer,
focusedContentColor: Color = MaterialTheme.colorScheme.primary,
focusedSelectedContentColor: Color = focusedContentColor,
disabledContentColor: Color = contentColor,
disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f),
disabledSelectedContentColor: Color = selectedContentColor
): TabColors
Tab's content colors to in conjunction with underlined indicator
| Parameters | |
|---|---|
contentColor: Color = LocalContentColor.current |
applied when the any of the other tabs is focused |
inactiveContentColor: Color = contentColor.copy(alpha = 0.4f) |
the default color of the tab's content when none of the tabs are focused |
selectedContentColor: Color = MaterialTheme.colorScheme.onPrimaryContainer |
applied when the current tab is selected |
focusedContentColor: Color = MaterialTheme.colorScheme.primary |
applied when the current tab is focused |
focusedSelectedContentColor: Color = focusedContentColor |
applied when the current tab is both focused and selected |
disabledContentColor: Color = contentColor |
applied when any of the other tabs is focused and the current tab is disabled |
disabledInactiveContentColor: Color = disabledContentColor.copy(alpha = 0.4f) |
applied when the current tab is disabled and none of the tabs are focused |
disabledSelectedContentColor: Color = selectedContentColor |
applied when the current tab is disabled and selected |