fix: enable clickable links in AppleEmojiText for URLs, emails, and phone numbers
This commit is contained in:
@@ -290,6 +290,13 @@ fun MessageBubble(
|
||||
else if (isDarkTheme) Color.White else Color(0xFF000000)
|
||||
}
|
||||
|
||||
// 🔗 Цвет ссылок: для исходящих (синий фон) - светлый, для входящих - стандартный синий
|
||||
val linkColor =
|
||||
remember(message.isOutgoing, isDarkTheme) {
|
||||
if (message.isOutgoing) Color(0xFFB3E5FC) // Светло-голубой на синем фоне
|
||||
else Color(0xFF2196F3) // Стандартный Material Blue для входящих
|
||||
}
|
||||
|
||||
val timeColor =
|
||||
remember(message.isOutgoing, isDarkTheme) {
|
||||
if (message.isOutgoing) Color.White.copy(alpha = 0.7f)
|
||||
@@ -606,7 +613,8 @@ fun MessageBubble(
|
||||
AppleEmojiText(
|
||||
text = message.text,
|
||||
color = textColor,
|
||||
fontSize = 16.sp
|
||||
fontSize = 16.sp,
|
||||
linkColor = linkColor
|
||||
)
|
||||
},
|
||||
timeContent = {
|
||||
@@ -652,7 +660,8 @@ fun MessageBubble(
|
||||
AppleEmojiText(
|
||||
text = message.text,
|
||||
color = textColor,
|
||||
fontSize = 17.sp
|
||||
fontSize = 17.sp,
|
||||
linkColor = linkColor
|
||||
)
|
||||
},
|
||||
timeContent = {
|
||||
@@ -689,7 +698,8 @@ fun MessageBubble(
|
||||
AppleEmojiText(
|
||||
text = message.text,
|
||||
color = textColor,
|
||||
fontSize = 17.sp
|
||||
fontSize = 17.sp,
|
||||
linkColor = linkColor
|
||||
)
|
||||
},
|
||||
timeContent = {
|
||||
|
||||
Reference in New Issue
Block a user