Fix message color bubbles.

This commit is contained in:
Benoit Marty 2023-06-29 12:07:22 +02:00 committed by Benoit Marty
parent 737a797e69
commit 066aaef0fd
3 changed files with 26 additions and 19 deletions

View file

@ -44,6 +44,8 @@ import io.element.android.libraries.designsystem.preview.ElementPreviewDark
import io.element.android.libraries.designsystem.preview.ElementPreviewLight
import io.element.android.libraries.designsystem.theme.components.Surface
import io.element.android.libraries.designsystem.theme.components.Text
import io.element.android.libraries.designsystem.theme.messageFromMeBackground
import io.element.android.libraries.designsystem.theme.messageFromOtherBackground
import io.element.android.libraries.theme.ElementTheme
private val BUBBLE_RADIUS = 12.dp
@ -99,9 +101,9 @@ fun MessageEventBubble(
// Ignore state.isHighlighted for now, we need a design decision on it.
val backgroundBubbleColor = if (state.isMine) {
ElementTheme.legacyColors.messageFromMeBackground
ElementTheme.colors.messageFromMeBackground
} else {
ElementTheme.legacyColors.messageFromOtherBackground
ElementTheme.colors.messageFromOtherBackground
}
val bubbleShape = bubbleShape()
Box(