mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-05 06:50:31 +00:00
Fix tab text color
This commit is contained in:
parent
6e6c171dd7
commit
7a7f81ac7f
@ -24,6 +24,7 @@ import androidx.compose.runtime.mutableIntStateOf
|
|||||||
import androidx.compose.runtime.saveable.rememberSaveable
|
import androidx.compose.runtime.saveable.rememberSaveable
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
@ -50,7 +51,7 @@ fun AboutScreen(padding: PaddingValues) {
|
|||||||
TabRow(selectedTabIndex = tabIndex) {
|
TabRow(selectedTabIndex = tabIndex) {
|
||||||
TITLES.forEachIndexed { index, titleId ->
|
TITLES.forEachIndexed { index, titleId ->
|
||||||
Tab(
|
Tab(
|
||||||
text = { Text(text = stringResource(titleId)) },
|
text = { Text(text = stringResource(titleId), color = Color.White) },
|
||||||
selected = tabIndex == index,
|
selected = tabIndex == index,
|
||||||
onClick = { tabIndex = index }
|
onClick = { tabIndex = index }
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user