mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix size trick, the icon has changed.
This commit is contained in:
committed by
Benoit Marty
parent
79f52990ff
commit
c0fa56fff4
-7
@@ -19,7 +19,6 @@ package io.element.android.libraries.textcomposer.components
|
|||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.height
|
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.foundation.layout.size
|
import androidx.compose.foundation.layout.size
|
||||||
import androidx.compose.foundation.shape.CircleShape
|
import androidx.compose.foundation.shape.CircleShape
|
||||||
@@ -58,11 +57,6 @@ internal fun SendButton(
|
|||||||
is MessageComposerMode.Edit -> CompoundIcons.Check
|
is MessageComposerMode.Edit -> CompoundIcons.Check
|
||||||
else -> CompoundIcons.Send
|
else -> CompoundIcons.Send
|
||||||
}
|
}
|
||||||
val iconSize = when (composerMode) {
|
|
||||||
is MessageComposerMode.Edit -> 24.dp
|
|
||||||
// CommonDrawables.ic_september_send is too big... reduce its size.
|
|
||||||
else -> 18.dp
|
|
||||||
}
|
|
||||||
val iconStartPadding = when (composerMode) {
|
val iconStartPadding = when (composerMode) {
|
||||||
is MessageComposerMode.Edit -> 0.dp
|
is MessageComposerMode.Edit -> 0.dp
|
||||||
else -> 2.dp
|
else -> 2.dp
|
||||||
@@ -79,7 +73,6 @@ internal fun SendButton(
|
|||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.height(iconSize)
|
|
||||||
.padding(start = iconStartPadding)
|
.padding(start = iconStartPadding)
|
||||||
.align(Alignment.Center),
|
.align(Alignment.Center),
|
||||||
imageVector = iconVector,
|
imageVector = iconVector,
|
||||||
|
|||||||
Reference in New Issue
Block a user