diff --git a/OTP/Assets.xcassets/AccentColor.colorset/Contents.json b/OTP/Assets.xcassets/AccentColor.colorset/Contents.json index eb87897..bb57667 100644 --- a/OTP/Assets.xcassets/AccentColor.colorset/Contents.json +++ b/OTP/Assets.xcassets/AccentColor.colorset/Contents.json @@ -1,6 +1,10 @@ { "colors" : [ { + "color" : { + "platform" : "universal", + "reference" : "systemMintColor" + }, "idiom" : "universal" } ], diff --git a/OTP/Views/AppView.swift b/OTP/Views/AppView.swift index a5dfc15..cab152c 100644 --- a/OTP/Views/AppView.swift +++ b/OTP/Views/AppView.swift @@ -38,6 +38,7 @@ struct AppView: View { isPresentingPreferences = true } label: { Label("Preferences", systemImage: "gear") + .tint(.accentColor) } } @@ -70,6 +71,7 @@ struct AppView: View { } } label: { Label("Add Key", systemImage: "plus.circle") + .tint(.accentColor) } } } diff --git a/OTP/Views/EditKeyForm.swift b/OTP/Views/EditKeyForm.swift index e996eb5..fb54ddf 100644 --- a/OTP/Views/EditKeyForm.swift +++ b/OTP/Views/EditKeyForm.swift @@ -94,12 +94,14 @@ 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 85995e6..5b372e2 100644 --- a/OTP/Views/QRCodeView.swift +++ b/OTP/Views/QRCodeView.swift @@ -76,6 +76,7 @@ struct QRCodeView: View { Button("Done") { dismiss() } + .tint(.accentColor) } } .background { @@ -105,6 +106,7 @@ 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()