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,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")
|
||||||
|
|
@ -306,4 +309,3 @@ fun SettingsScreen(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue