Fixed that on iOS and macOS text shadow has been displayed really ugly

This commit is contained in:
dankito 2024-09-26 04:53:42 +02:00
parent 5ac65308bb
commit 0aa25e0c59
1 changed files with 1 additions and 1 deletions

View File

@ -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,