Fix send message icon color

This commit is contained in:
Benoit Marty 2023-06-29 11:01:52 +02:00
parent 63bba7c2c2
commit 03d00b46b8

View file

@ -349,7 +349,7 @@ private fun BoxScope.SendButton(
Box( Box(
modifier = modifier modifier = modifier
.clip(CircleShape) .clip(CircleShape)
.background(if (canSendMessage) ElementTheme.legacyColors.accentColor else Color.Transparent) .background(if (canSendMessage) ElementTheme.colors.iconAccentTertiary else Color.Transparent)
.size(30.dp) .size(30.dp)
.align(Alignment.BottomEnd) .align(Alignment.BottomEnd)
.applyIf(composerMode !is MessageComposerMode.Edit, ifTrue = { .applyIf(composerMode !is MessageComposerMode.Edit, ifTrue = {
@ -376,7 +376,8 @@ private fun BoxScope.SendButton(
modifier = Modifier.size(16.dp), modifier = Modifier.size(16.dp),
resourceId = iconId, resourceId = iconId,
contentDescription = contentDescription, contentDescription = contentDescription,
tint = if (canSendMessage) Color.White else ElementTheme.legacyColors.quaternary // Exception here, we use Color.White instead of ElementTheme.colors.iconOnSolidPrimary
tint = if (canSendMessage) Color.White else ElementTheme.colors.iconDisabled
) )
} }
} }