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