From 83706b19da1a67761ebc6e0b3c368e780dd9ca56 Mon Sep 17 00:00:00 2001 From: Stanislav Dmitrenko <7953703+avently@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:58:29 +0700 Subject: [PATCH] android, desktop: removed additional background under chat bubbles (#4287) --- .../kotlin/chat/simplex/common/ui/theme/ThemeManager.kt | 2 ++ .../chat/simplex/common/views/chat/item/FramedItemView.kt | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/ThemeManager.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/ThemeManager.kt index 2f8f6ed0bf..e047f82837 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/ThemeManager.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/ui/theme/ThemeManager.kt @@ -224,6 +224,8 @@ object ThemeManager { s.length == 1 -> "#ff$s$s$s$s$s$s" s.length == 2 -> "#ff$s$s$s" s.length == 3 -> "#ff$s$s" + s.length == 4 && this.alpha == 0f -> "#0000$s" // 000088ff treated as 88ff + s.length == 4 -> "#ff00$s" s.length == 6 && this.alpha == 0f -> "#00$s" s.length == 6 -> "#ff$s" else -> "#$s" diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt index 8969ca9b21..b2777a7042 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/item/FramedItemView.kt @@ -189,13 +189,6 @@ fun FramedItemView( val receivedColor = MaterialTheme.appColors.receivedMessage Box(Modifier .clip(RoundedCornerShape(18.dp)) - .background( - when { - transparentBackground -> Color.Transparent - sent -> MaterialTheme.colors.background - else -> MaterialTheme.colors.background - } - ) .background( when { transparentBackground -> Color.Transparent