From b073e55104eb8f384e7d66899b81262c1a412104 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 8 Feb 2023 16:12:00 +0100 Subject: [PATCH] Improve edit lisibility --- .../Assets.xcassets/AccentColor.colorset/Contents.json | 4 ++++ LeCountdown/Views/DialView.swift | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/LeCountdown/Assets.xcassets/AccentColor.colorset/Contents.json b/LeCountdown/Assets.xcassets/AccentColor.colorset/Contents.json index eb87897..e12e779 100644 --- a/LeCountdown/Assets.xcassets/AccentColor.colorset/Contents.json +++ b/LeCountdown/Assets.xcassets/AccentColor.colorset/Contents.json @@ -1,6 +1,10 @@ { "colors" : [ { + "color" : { + "platform" : "universal", + "reference" : "systemPinkColor" + }, "idiom" : "universal" } ], diff --git a/LeCountdown/Views/DialView.swift b/LeCountdown/Views/DialView.swift index 6723c84..a40747a 100644 --- a/LeCountdown/Views/DialView.swift +++ b/LeCountdown/Views/DialView.swift @@ -22,7 +22,7 @@ struct DialView: View { var body: some View { ZStack { - Image(timer.imageName).resizable() + Image(timer.imageName).resizable().saturation(self.isEditingBinding.wrappedValue ? 0.0 : 1.0) switch self.isEditingBinding.wrappedValue { case false: @@ -42,7 +42,7 @@ struct DialView: View { Image(systemName: "gearshape.fill") .font(.system(size: 50.0)) .padding(30.0) - .foregroundColor(Color.white) + .foregroundColor(Color.accentColor) } } } @@ -114,7 +114,7 @@ struct DialView_Previews: PreviewProvider { DialView( timer: Countdown.fake(context: PersistenceController.preview.container.viewContext), - isEditingBinding: .constant(false), frameSize: 150.0) + isEditingBinding: .constant(true), frameSize: 150.0) .environmentObject(Conductor.maestro) .environmentObject(BoringContext())