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:
Doug
2025-04-11 17:09:57 +01:00
committed by GitHub
parent 511c4d7bf7
commit a5d94a0219
176 changed files with 385 additions and 363 deletions
@@ -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))
}