Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct BackupImportCodeScannerView: View {
isImagePickerVisible: $isCodeImagePickerGalleryVisible,
)
.padding()
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct EncryptedItemDetailView: View {
.modifier(ProminentButtonModifier())
.animation(.easeOut, value: viewModel.state)
.padding()
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
.disabled(!viewModel.canStartDecryption)
}
.onChange(of: viewModel.enteredEncryptionPassword) { _, _ in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct OTPCodeCreateView<
isImagePickerVisible: $isCodeImagePickerGalleryVisible,
)
.padding()
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ struct OTPCodeDetailView<PreviewGenerator: VaultItemPreviewViewGenerator<VaultIt
errorTitle: viewModel.strings.inputKeyErrorTitle,
)
.padding()
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
}
}

Expand Down Expand Up @@ -420,7 +420,7 @@ struct OTPCodeDetailView<PreviewGenerator: VaultItemPreviewViewGenerator<VaultIt
if viewModel.shouldShowDeleteButton {
deleteButton
.padding(.horizontal)
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
.padding(.vertical, 12)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ struct SecureNoteDetailView: View {
if viewModel.shouldShowDeleteButton {
deleteButton
.padding(.horizontal)
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
.padding(.vertical, 12)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct VaultDetailEncryptionEditView: View {
}
.modifier(ProminentButtonModifier())
.padding()
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
.disabled(!doPasswordsMatch)
}
}
Expand All @@ -102,7 +102,7 @@ struct VaultDetailEncryptionEditView: View {
}
.modifier(ProminentButtonModifier(color: .red))
.padding()
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
}
}
}
10 changes: 0 additions & 10 deletions Vault/Sources/VaultiOS/Views/General/Color+Constrast.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ extension Color {
return 0.0
}

/// Determine appropriate foreground color for contrast
var contrastingForegroundColor: Color {
isPercievedLight ? .black.opacity(0.8) : .white
}

/// Determine appropriate foreground color for contrast
var contrastingBackgroudColor: Color {
isPercievedLight ? .primary.opacity(0.8) : Color(UIColor.systemBackground).opacity(0.8)
}

var isPercievedLight: Bool {
percievedBrightness > 0.9
}
Expand Down
44 changes: 0 additions & 44 deletions Vault/Sources/VaultiOS/Views/General/SearchTextField.swift

This file was deleted.

41 changes: 0 additions & 41 deletions Vault/Sources/VaultiOS/Views/General/TextArea.swift

This file was deleted.

28 changes: 0 additions & 28 deletions Vault/Sources/VaultiOS/Views/General/TextEditingView.swift

This file was deleted.

55 changes: 0 additions & 55 deletions Vault/Sources/VaultiOS/Views/General/TextViewViewController.swift

This file was deleted.

27 changes: 0 additions & 27 deletions Vault/Sources/VaultiOS/Views/General/View+Center.swift

This file was deleted.

48 changes: 0 additions & 48 deletions Vault/Sources/VaultiOS/Views/Previews/OTP/OTPCodeLabels.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Vault/Sources/VaultiOS/Views/Tags/VaultTagDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct VaultTagDetailView: View {
.tint(.white)
}
.modifier(ProminentButtonModifier(color: .red))
.modifier(HorizontallyCenter())
.frame(maxWidth: .infinity)
}
.listRowBackground(EmptyView())
}
Expand Down