From 0aa25e0c59ce4a336fd4cfb1527e5fd097ffc21a Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 26 Sep 2024 04:53:42 +0200 Subject: [PATCH] Fixed that on iOS and macOS text shadow has been displayed really ugly --- .../net/codinux/banking/ui/appskeleton/FloatingActionMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FloatingActionMenu.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FloatingActionMenu.kt index 7596325..3e9d953 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FloatingActionMenu.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FloatingActionMenu.kt @@ -81,7 +81,7 @@ fun FloatingActionMenuItem( ) { Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.padding(bottom = FabMenuSpacing).clickable(enabled) { onClick() }) { - Text(label, fontSize = 16.sp, color = contentColorFor(MaterialTheme.colors.secondary).copy(if (enabled) 1f else ContentAlpha.disabled), modifier = Modifier.padding(end = 8.dp).background(MaterialTheme.colors.secondary).shadow(6.dp).padding(horizontal = 20.dp, vertical = 4.dp)) // the same background color as the FAB + Text(label, fontSize = 16.sp, color = contentColorFor(MaterialTheme.colors.secondary).copy(if (enabled) 1f else ContentAlpha.disabled), modifier = Modifier.padding(end = 8.dp).background(MaterialTheme.colors.secondary).padding(horizontal = 20.dp, vertical = 4.dp)) // the same background color as the FAB FloatingActionButton( shape = CircleShape,