mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Adopt the new start chat button design. (#4013)
* Update compound and handle plain to tertiary/textLink button style updates. * Update the start chat button to use the right icon/style. * Update preview snapshots. * Fix remaining snapshots.
This commit is contained in:
@@ -293,7 +293,7 @@ struct ComposerToolbar: View {
|
||||
.scaledFrame(size: 30, relativeTo: .compound.headingLG)
|
||||
.scaledPadding(7, relativeTo: .compound.headingLG)
|
||||
}
|
||||
.buttonStyle(.compound(.plain))
|
||||
.buttonStyle(.compound(.textLink))
|
||||
.accessibilityLabel(L10n.a11yDelete)
|
||||
}
|
||||
|
||||
|
||||
@@ -100,11 +100,18 @@ private struct SingleKnockRequestBannerContent: View {
|
||||
|
||||
private var actions: some View {
|
||||
HStack(spacing: 12) {
|
||||
Button(L10n.screenRoomSingleKnockRequestViewButtonTitle, action: onViewAll)
|
||||
.buttonStyle(.compound(.secondary, size: .medium))
|
||||
Button(action: onViewAll) {
|
||||
Text(L10n.screenRoomSingleKnockRequestViewButtonTitle)
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
.buttonStyle(.compound(.secondary, size: .medium))
|
||||
|
||||
if let onAccept {
|
||||
Button(L10n.screenRoomSingleKnockRequestAcceptButtonTitle) { onAccept(request.eventID) }
|
||||
.buttonStyle(.compound(.primary, size: .medium))
|
||||
Button { onAccept(request.eventID) } label: {
|
||||
Text(L10n.screenRoomSingleKnockRequestAcceptButtonTitle)
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
.buttonStyle(.compound(.primary, size: .medium))
|
||||
}
|
||||
}
|
||||
.padding(.top, request.reason == nil ? 0 : 2)
|
||||
@@ -146,8 +153,11 @@ private struct MultipleKnockRequestsBannerContent: View {
|
||||
KnockRequestsBannerDismissButton(onDismiss: onDismiss)
|
||||
}
|
||||
}
|
||||
Button(L10n.screenRoomMultipleKnockRequestsViewAllButtonTitle) {
|
||||
Button {
|
||||
onViewAll()
|
||||
} label: {
|
||||
Text(L10n.screenRoomMultipleKnockRequestsViewAllButtonTitle)
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
.buttonStyle(.compound(.primary, size: .medium))
|
||||
}
|
||||
|
||||
@@ -58,8 +58,11 @@ struct RoomScreenFooterView: View {
|
||||
.foregroundColor(.compound.textPrimary)
|
||||
}
|
||||
|
||||
Button(L10n.actionDismiss) {
|
||||
Button {
|
||||
callback(.resolvePinViolation(userID: member.userID))
|
||||
} label: {
|
||||
Text(L10n.actionDismiss)
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
.buttonStyle(.compound(.primary, size: .medium))
|
||||
}
|
||||
@@ -85,8 +88,11 @@ struct RoomScreenFooterView: View {
|
||||
.foregroundColor(.compound.textCriticalPrimary)
|
||||
}
|
||||
|
||||
Button(L10n.cryptoIdentityChangeWithdrawVerificationAction) {
|
||||
Button {
|
||||
callback(.resolveVerificationViolation(userID: member.userID))
|
||||
} label: {
|
||||
Text(L10n.cryptoIdentityChangeWithdrawVerificationAction)
|
||||
.frame(maxWidth: .infinity)
|
||||
}
|
||||
.buttonStyle(.compound(.primary, size: .medium))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user