Update room notification settings mismatch screen (#1733)

This commit is contained in:
Nicolas Mauri
2023-09-18 11:11:27 +02:00
committed by GitHub
parent 420b982b90
commit 03603d13e5
7 changed files with 15 additions and 18 deletions
+1 -3
View File
@@ -762,9 +762,7 @@ public enum L10n {
public static var screenNotificationSettingsCallsLabel: String { return L10n.tr("Localizable", "screen_notification_settings_calls_label") }
/// Configuration mismatch
public static var screenNotificationSettingsConfigurationMismatch: String { return L10n.tr("Localizable", "screen_notification_settings_configuration_mismatch") }
/// We’ve simplified Notifications Settings to make options easier to find.
///
/// Some custom settings you’ve chosen in the past are not shown here, but they’re still active.
/// We’ve simplified Notifications Settings to make options easier to find. Some custom settings you’ve chosen in the past are not shown here, but they’re still active.
///
/// If you proceed, some of your settings may change.
public static var screenNotificationSettingsConfigurationMismatchDescription: String { return L10n.tr("Localizable", "screen_notification_settings_configuration_mismatch_description") }
@@ -156,13 +156,12 @@ struct NotificationSettingsScreen: View {
private var configurationMismatchSection: some View {
Section {
ListRow(kind: .custom {
VStack(alignment: .leading, spacing: 12) {
Image(systemName: "gearshape")
.font(.compound.headingSMSemibold)
VStack(alignment: .leading, spacing: 4) {
VStack(alignment: .leading, spacing: 16) {
VStack(alignment: .leading, spacing: 8) {
Text(L10n.screenNotificationSettingsConfigurationMismatch)
.font(.compound.headingSMSemibold)
.font(.compound.bodyLGSemibold)
Text(L10n.screenNotificationSettingsConfigurationMismatchDescription)
.font(.compound.bodyMD)
.foregroundColor(.compound.textSecondary)
}
Button {
@@ -175,7 +174,7 @@ struct NotificationSettingsScreen: View {
.accessibilityIdentifier(A11yIdentifiers.notificationSettingsScreen.fixMismatchConfiguration)
}
.padding(.horizontal, ListRowPadding.horizontal)
.padding(.vertical, ListRowPadding.vertical)
.padding(.vertical, 24)
})
}
}