From 7a7f81ac7f9ef7778ad51a1c2bea96b0956964a7 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Mon, 15 Jul 2024 04:56:49 +0530 Subject: [PATCH] Fix tab text color --- app/src/main/java/org/schabi/newpipe/about/AboutScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/about/AboutScreen.kt b/app/src/main/java/org/schabi/newpipe/about/AboutScreen.kt index 088380f74..fc3f70482 100644 --- a/app/src/main/java/org/schabi/newpipe/about/AboutScreen.kt +++ b/app/src/main/java/org/schabi/newpipe/about/AboutScreen.kt @@ -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 @@ -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 } )