fix: regression in which "log out" is not error coloured

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-01-08 01:27:15 +01:00
parent 017b21b8ad
commit 94034c8cfc
1 changed files with 18 additions and 16 deletions

View File

@ -278,18 +278,21 @@ fun SettingsScreen(
} }
) )
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.error) {
ListItem( ListItem(
headlineContent = { headlineContent = {
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.error) {
Text( Text(
text = stringResource(id = R.string.logout) text = stringResource(id = R.string.logout)
) )
}
}, },
leadingContent = { leadingContent = {
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.error) {
Icon( Icon(
imageVector = Icons.Default.Close, imageVector = Icons.Default.Close,
contentDescription = stringResource(id = R.string.logout), contentDescription = stringResource(id = R.string.logout),
) )
}
}, },
modifier = Modifier modifier = Modifier
.testTag("settings_view_logout") .testTag("settings_view_logout")
@ -305,5 +308,4 @@ fun SettingsScreen(
} }
} }
} }
}
} }