Tweak EncryptionReset, IdentityConfirmation and SecureBackupRecovery screens. (#3391)

This commit is contained in:
Doug
2024-10-10 11:27:53 +01:00
committed by GitHub
parent 2e9df064ca
commit 431d88b6c1
17 changed files with 41 additions and 58 deletions

View File

@@ -71,13 +71,9 @@ struct EncryptionResetScreen: View {
@ViewBuilder
private func checkMarkItem(title: String, position: ListPosition, positive: Bool) -> some View {
RoundedLabelItem(title: title, listPosition: position) {
if positive {
CompoundIcon(\.check)
.foregroundColor(.compound.iconAccentPrimary)
} else {
CompoundIcon(\.close)
.foregroundColor(.compound.iconCriticalPrimary)
}
CompoundIcon(positive ? \.check : \.info)
.foregroundColor(positive ? .compound.iconAccentPrimary : .compound.iconSecondary)
.alignmentGuide(.top) { _ in 2 }
}
.backgroundStyle(.compound.bgCanvasDefault)
}