|
|
|
|
@ -105,7 +105,7 @@ private fun VoiceBubble(message: Message, textColor: Color, onPlay: (String, ()
|
|
|
|
|
Row(verticalAlignment = Alignment.CenterVertically) { |
|
|
|
|
/* Play/Pause button */ |
|
|
|
|
Box( |
|
|
|
|
modifier = Modifier.size(32.dp).background(Color(0xFF3390EC), CircleShape) |
|
|
|
|
modifier = Modifier.size(32.dp).background(Color.White, CircleShape) |
|
|
|
|
.clickable { |
|
|
|
|
if (!playing && message.filePath.isNotEmpty()) { |
|
|
|
|
playing = true; elapsedMs = 0; progress = 0f |
|
|
|
|
@ -116,7 +116,7 @@ private fun VoiceBubble(message: Message, textColor: Color, onPlay: (String, ()
|
|
|
|
|
}, |
|
|
|
|
contentAlignment = Alignment.Center |
|
|
|
|
) { |
|
|
|
|
Text(if (playing) "\u23F8" else "\u25B6", fontSize = 14.sp, color = Color.White) |
|
|
|
|
Text(if (playing) "\u23F8" else "\u25B6", fontSize = 14.sp, color = Color.Black) |
|
|
|
|
} |
|
|
|
|
Spacer(Modifier.width(8.dp)) |
|
|
|
|
|
|
|
|
|
|