fix: regression in which "log out" is not error coloured
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
017b21b8ad
commit
94034c8cfc
|
|
@ -278,31 +278,33 @@ fun SettingsScreen(
|
|||
}
|
||||
)
|
||||
|
||||
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.error) {
|
||||
ListItem(
|
||||
headlineContent = {
|
||||
ListItem(
|
||||
headlineContent = {
|
||||
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.error) {
|
||||
Text(
|
||||
text = stringResource(id = R.string.logout)
|
||||
)
|
||||
},
|
||||
leadingContent = {
|
||||
}
|
||||
},
|
||||
leadingContent = {
|
||||
CompositionLocalProvider(LocalContentColor provides MaterialTheme.colorScheme.error) {
|
||||
Icon(
|
||||
imageVector = Icons.Default.Close,
|
||||
contentDescription = stringResource(id = R.string.logout),
|
||||
)
|
||||
},
|
||||
modifier = Modifier
|
||||
.testTag("settings_view_logout")
|
||||
.clickable {
|
||||
viewModel.logout()
|
||||
navController.navigate("login/greeting") {
|
||||
popUpTo("chat") {
|
||||
inclusive = true
|
||||
}
|
||||
}
|
||||
},
|
||||
modifier = Modifier
|
||||
.testTag("settings_view_logout")
|
||||
.clickable {
|
||||
viewModel.logout()
|
||||
navController.navigate("login/greeting") {
|
||||
popUpTo("chat") {
|
||||
inclusive = true
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue