Add start padding to the send icon to make it visually centered.
This commit is contained in:
parent
c00d06d7c6
commit
3e90f59604
1 changed files with 5 additions and 0 deletions
|
|
@ -593,6 +593,10 @@ private fun SendButton(
|
|||
// CommonDrawables.ic_september_send is too big... reduce its size.
|
||||
else -> 18.dp
|
||||
}
|
||||
val iconStartPadding = when (composerMode) {
|
||||
is MessageComposerMode.Edit -> 0.dp
|
||||
else -> 2.dp
|
||||
}
|
||||
val contentDescription = when (composerMode) {
|
||||
is MessageComposerMode.Edit -> stringResource(CommonStrings.action_edit)
|
||||
else -> stringResource(CommonStrings.action_send)
|
||||
|
|
@ -606,6 +610,7 @@ private fun SendButton(
|
|||
Icon(
|
||||
modifier = Modifier
|
||||
.height(iconSize.applyScaleUp())
|
||||
.padding(start = iconStartPadding)
|
||||
.align(Alignment.Center),
|
||||
resourceId = iconId,
|
||||
contentDescription = contentDescription,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue