Skip to content

Commit

Permalink
Fix tab text color
Browse files Browse the repository at this point in the history
  • Loading branch information
Isira-Seneviratne committed Jul 14, 2024
1 parent abeff9a commit 4d9590b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/schabi/newpipe/about/AboutScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
Expand All @@ -50,7 +51,7 @@ fun AboutScreen(padding: PaddingValues) {
TabRow(selectedTabIndex = tabIndex) {
TITLES.forEachIndexed { index, titleId ->
Tab(
text = { Text(text = stringResource(titleId)) },
text = { Text(text = stringResource(titleId), color = Color.White) },
selected = tabIndex == index,
onClick = { tabIndex = index }
)
Expand Down

0 comments on commit 4d9590b

Please sign in to comment.