mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-29 01:48:53 +03:00
style: move error color to M3 theme code
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
b40a1ea438
commit
b0351f016e
1 changed files with 2 additions and 2 deletions
|
@ -133,7 +133,7 @@ fun ContactsList(contactsUiState: ContactsUiState, contactsViewModel: ContactsVi
|
||||||
is ContactsUiState.Error -> {
|
is ContactsUiState.Error -> {
|
||||||
val errorMessage = contactsUiState.message
|
val errorMessage = contactsUiState.message
|
||||||
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
|
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
|
||||||
Text(text = "Error: $errorMessage", color = Color.Red)
|
Text(text = "Error: $errorMessage", color = MaterialTheme.colorScheme.error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ fun ContactItemRow(contact: AutocompleteUser, contactsViewModel: ContactsViewMod
|
||||||
is RoomUiState.Error -> {
|
is RoomUiState.Error -> {
|
||||||
val errorMessage = (roomUiState as RoomUiState.Error).message
|
val errorMessage = (roomUiState as RoomUiState.Error).message
|
||||||
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
|
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
|
||||||
Text(text = "Error: $errorMessage", color = Color.Red)
|
Text(text = "Error: $errorMessage", color = MaterialTheme.colorScheme.error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is RoomUiState.None -> {}
|
is RoomUiState.None -> {}
|
||||||
|
|
Loading…
Reference in a new issue