From c9cb8e70bb580f3e76547fa1b4f2357deaba9d66 Mon Sep 17 00:00:00 2001 From: DatLag Date: Thu, 2 Feb 2023 21:43:26 +0100 Subject: [PATCH] fixed text color in menu after theme change --- .../burningseries/ui/screen/home/HomeScreen.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/commonMain/kotlin/dev/datlag/burningseries/ui/screen/home/HomeScreen.kt b/app/src/commonMain/kotlin/dev/datlag/burningseries/ui/screen/home/HomeScreen.kt index b3d72008..e5e15f64 100644 --- a/app/src/commonMain/kotlin/dev/datlag/burningseries/ui/screen/home/HomeScreen.kt +++ b/app/src/commonMain/kotlin/dev/datlag/burningseries/ui/screen/home/HomeScreen.kt @@ -125,24 +125,28 @@ fun HomeScreen(component: HomeComponent) { component.onSettingsClicked() }, enabled = true, text = { Text( - text = strings.settings + text = strings.settings, + color = MaterialTheme.colorScheme.onSurface ) }, icon = { Icon( imageVector = Icons.Default.Settings, - contentDescription = strings.settings + contentDescription = strings.settings, + tint = MaterialTheme.colorScheme.onSurface ) }) DropdownMenuItem(onClick = { component.onAboutClicked() }, enabled = true, text = { Text( - text = strings.about + text = strings.about, + color = MaterialTheme.colorScheme.onSurface ) }, icon = { Icon( imageVector = Icons.Default.Info, - contentDescription = strings.about + contentDescription = strings.about, + tint = MaterialTheme.colorScheme.onSurface ) }) }