Milan Jurkulak 3 лет назад
Родитель
Сommit
b960aebee9
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      tvlib/src/main/kotlin/org/mjdev/tvlib/ui/components/tv/Tabs.kt

+ 3 - 2
tvlib/src/main/kotlin/org/mjdev/tvlib/ui/components/tv/Tabs.kt

@@ -55,13 +55,13 @@ fun Tabs(
 ) {
     val selectedTabIndex = remember { mutableIntStateOf(0) }
     val colors = TabDefaults.pillIndicatorTabColors(
-//        activeContentColor = activeContentColor,
         contentColor = activeContentColor,
+        inactiveContentColor = activeContentColor.copy(alpha = 0.4f),
         selectedContentColor = activeContentColor,
         focusedContentColor = focusedContentColor,
         focusedSelectedContentColor = focusedContentColor,
-//        disabledActiveContentColor = activeContentColor.copy(alpha = 0.4f),
         disabledContentColor = activeContentColor.copy(alpha = 0.4f),
+        disabledInactiveContentColor = activeContentColor.copy(alpha = 0.4f),
         disabledSelectedContentColor = selectedContentColor,
     )
     TabRow(
@@ -100,6 +100,7 @@ fun Tabs(
                 val focusState = rememberFocusState(tab)
                 FocusableBox(
                     focusedColor = Color.Transparent,
+                    focusState = focusState,
                     onFocusChange = {
                         if (focusState.isFocused) {
                             selectedTabIndex.value = index