Fixed that on iOS and macOS text shadow has been displayed really ugly
This commit is contained in:
parent
5ac65308bb
commit
0aa25e0c59
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue