From a22eb98ae2375ab0d99e0090831fcb091744ede5 Mon Sep 17 00:00:00 2001 From: mitchellss Date: Fri, 9 Jun 2023 09:25:01 -0400 Subject: [PATCH] Change color of person name to adapt to light/dark mode --- app/src/main/java/com/jerboa/ui/components/home/Home.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/jerboa/ui/components/home/Home.kt b/app/src/main/java/com/jerboa/ui/components/home/Home.kt index 8d01232dd..2b0ef776b 100644 --- a/app/src/main/java/com/jerboa/ui/components/home/Home.kt +++ b/app/src/main/java/com/jerboa/ui/components/home/Home.kt @@ -57,7 +57,6 @@ import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier -import androidx.compose.ui.graphics.Color import androidx.compose.ui.tooling.preview.Preview import androidx.navigation.NavController import androidx.navigation.compose.rememberNavController @@ -392,7 +391,7 @@ fun AvatarAndAccountName(myPerson: PersonSafe?) { } PersonName( person = myPerson, - color = Color.White, + color = MaterialTheme.colorScheme.onSurface, ) } }