mobile: change live message button to lightning bolt (#1653)

This commit is contained in:
Evgeny Poberezkin
2022-12-27 09:18:20 +00:00
committed by GitHub
parent 74245d3f2b
commit 90a20cd52f
2 changed files with 9 additions and 10 deletions

View File

@@ -133,7 +133,7 @@ fun SendMsgView(
) {
ItemAction(
generalGetString(R.string.send_live_message),
Icons.Filled.MoreHoriz,
Icons.Filled.Bolt,
onClick = {
startLiveMessage(scope, sendLiveMessage, updateLiveMessage, sendButtonSize, sendButtonAlpha, composeState, liveMessageAlertShown)
showDropdown = false
@@ -312,7 +312,7 @@ private fun VoiceButtonWithoutPermission(onClick: () -> Unit) {
stringResource(R.string.icon_descr_record_voice_message),
tint = MaterialTheme.colors.primary,
modifier = Modifier
.size(36.dp)
.size(34.dp)
.padding(4.dp)
)
}
@@ -357,7 +357,7 @@ private fun RecordVoiceButton(interactionSource: MutableInteractionSource) {
stringResource(R.string.icon_descr_record_voice_message),
tint = MaterialTheme.colors.primary,
modifier = Modifier
.size(36.dp)
.size(34.dp)
.padding(4.dp)
)
}
@@ -421,15 +421,12 @@ private fun StartLiveMessageButton(onClick: () -> Unit) {
contentAlignment = Alignment.Center
) {
Icon(
Icons.Filled.MoreHoriz,
Icons.Filled.Bolt,
stringResource(R.string.icon_descr_send_message),
tint = Color.White,
tint = MaterialTheme.colors.primary,
modifier = Modifier
.size(36.dp)
.padding(4.dp)
.clip(CircleShape)
.background(MaterialTheme.colors.primary)
.padding(1.dp)
)
}
}

View File

@@ -141,7 +141,7 @@ struct SendMessageView: View {
Button {
startLiveMessage(send: send, update: update)
} label: {
Label("Send live message", systemImage: "ellipsis.circle")
Label("Send live message", systemImage: "bolt.fill")
}
}
.padding([.bottom, .trailing], 4)
@@ -227,9 +227,11 @@ struct SendMessageView: View {
default: ()
}
} label: {
Image(systemName: "ellipsis.circle.fill")
Image(systemName: "bolt.fill")
.resizable()
.scaledToFit()
.foregroundColor(.accentColor)
.frame(width: 20, height: 20)
}
.frame(width: 29, height: 29)
.padding([.bottom, .horizontal], 4)