From 9e16f9a693aa36bcb217e0a83ce117951fec2df6 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 25 Aug 2021 11:40:39 -0400 Subject: [PATCH] Remove unneeded tint modifiers --- OTP/Views/AddKeyButton.swift | 1 - OTP/Views/AppView.swift | 2 -- OTP/Views/EditKeyForm.swift | 2 -- OTP/Views/QRCodeView.swift | 2 -- 4 files changed, 7 deletions(-) diff --git a/OTP/Views/AddKeyButton.swift b/OTP/Views/AddKeyButton.swift index f66f1e9..5c99536 100644 --- a/OTP/Views/AddKeyButton.swift +++ b/OTP/Views/AddKeyButton.swift @@ -52,7 +52,6 @@ struct AddKeyButton: View { } } label: { Label("Add Key", systemImage: "plus.circle") - .tint(.accentColor) } .accessibilityLabel("Add Key") .sheet(isPresented: $isPresentingScanner, content: self.scannerSheet) diff --git a/OTP/Views/AppView.swift b/OTP/Views/AppView.swift index 56c3f4e..11cc225 100644 --- a/OTP/Views/AppView.swift +++ b/OTP/Views/AppView.swift @@ -40,7 +40,6 @@ struct AppView: View { isPresentingPreferences = true } label: { Label("Preferences", systemImage: "gear") - .tint(.accentColor) } } @@ -49,7 +48,6 @@ struct AppView: View { } } } - .tint(.blue) .sheet(isPresented: $isPresentingPreferences, content: self.preferencesSheet) } diff --git a/OTP/Views/EditKeyForm.swift b/OTP/Views/EditKeyForm.swift index fb54ddf..e996eb5 100644 --- a/OTP/Views/EditKeyForm.swift +++ b/OTP/Views/EditKeyForm.swift @@ -94,14 +94,12 @@ struct EditKeyForm: View { Button("Cancel") { dismiss(.cancel) } - .tint(.accentColor) } } ToolbarItem(placement: .navigationBarTrailing) { Button("Save") { dismiss(.save(editedKey.toTOTPKey()!)) } - .tint(.accentColor) .disabled(!isValid) } } diff --git a/OTP/Views/QRCodeView.swift b/OTP/Views/QRCodeView.swift index 5b372e2..85995e6 100644 --- a/OTP/Views/QRCodeView.swift +++ b/OTP/Views/QRCodeView.swift @@ -76,7 +76,6 @@ struct QRCodeView: View { Button("Done") { dismiss() } - .tint(.accentColor) } } .background { @@ -106,7 +105,6 @@ struct QRCodeView: View { Label("Save", systemImage: "square.and.arrow.down") } } - .tint(.accentColor) } // fix the size so that the HStack doesn't grow beyond with width of the image .fixedSize()