From b0351f016e548dd45a53006f02264b5b1d9d46ee Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Sat, 17 Aug 2024 23:27:21 +0200 Subject: [PATCH] style: move error color to M3 theme code Signed-off-by: Andy Scherzinger --- .../com/nextcloud/talk/contacts/ContactsActivityCompose.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/contacts/ContactsActivityCompose.kt b/app/src/main/java/com/nextcloud/talk/contacts/ContactsActivityCompose.kt index fdb3c8389..fe828a4b7 100644 --- a/app/src/main/java/com/nextcloud/talk/contacts/ContactsActivityCompose.kt +++ b/app/src/main/java/com/nextcloud/talk/contacts/ContactsActivityCompose.kt @@ -133,7 +133,7 @@ fun ContactsList(contactsUiState: ContactsUiState, contactsViewModel: ContactsVi is ContactsUiState.Error -> { val errorMessage = contactsUiState.message 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 -> { val errorMessage = (roomUiState as RoomUiState.Error).message 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 -> {}