mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Added a chevron to collapsed call buttons in the DM (#5755)
* Added a chevron to collapsed call buttons in the DM This makes the context menu more intuitive and easy to find. Inspired by the collapsed state of call buttons in Whatsapp that I saw recently * Shortening video/voice call button strings Currently the text is unnecessarily long, I have reduced to button text # Conflicts: # ElementX/Sources/Generated/Strings+Untranslated.swift * Move translations to localazy --------- Co-authored-by: Stefan Ceriu <stefan.ceriu@gmail.com>
This commit is contained in:
@@ -31,16 +31,19 @@ struct RoomCallControlsToolbar: ToolbarContent {
|
||||
Button {
|
||||
onCallTap(true)
|
||||
} label: {
|
||||
Label(L10n.a11yStartVoiceCall, icon: \.voiceCallSolid)
|
||||
Label(L10n.actionVoiceCall, icon: \.voiceCallSolid)
|
||||
}
|
||||
|
||||
Button {
|
||||
onCallTap(false)
|
||||
} label: {
|
||||
Label(L10n.a11yStartVideoCall, icon: \.videoCallSolid)
|
||||
Label(L10n.actionVideoCall, icon: \.videoCallSolid)
|
||||
}
|
||||
} label: {
|
||||
CompoundIcon(\.voiceCallSolid)
|
||||
HStack(spacing: 2) {
|
||||
CompoundIcon(\.voiceCallSolid)
|
||||
CompoundIcon(\.chevronDown, size: .xSmall, relativeTo: .compound.bodyLG)
|
||||
}
|
||||
}
|
||||
.accessibilityLabel(L10n.a11yStartCall)
|
||||
.disabled(!viewState.canJoinCall)
|
||||
|
||||
Reference in New Issue
Block a user