Fix send message icon color
This commit is contained in:
parent
63bba7c2c2
commit
03d00b46b8
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue