From deb0dc7f38958ccf831c2da0e5021891b9152f48 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 12:55:00 +0000 Subject: [PATCH 1/3] Initial plan From 7308a79a21a25a995eb60b17919f114ccde4b157 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 12:59:22 +0000 Subject: [PATCH 2/3] Add LSUIElement to hide dock icon and add Quit button Co-authored-by: Aayush9029 <43297314+Aayush9029@users.noreply.github.com> --- RingLight.xcodeproj/project.pbxproj | 2 ++ .../Features/RingLight/Views/ContentView.swift | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/RingLight.xcodeproj/project.pbxproj b/RingLight.xcodeproj/project.pbxproj index 8148137..c05112a 100644 --- a/RingLight.xcodeproj/project.pbxproj +++ b/RingLight.xcodeproj/project.pbxproj @@ -275,6 +275,7 @@ ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_LSUIElement = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -308,6 +309,7 @@ ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_LSUIElement = YES; INFOPLIST_KEY_NSHumanReadableCopyright = ""; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", diff --git a/RingLight/Features/RingLight/Views/ContentView.swift b/RingLight/Features/RingLight/Views/ContentView.swift index fab7226..9e499b8 100644 --- a/RingLight/Features/RingLight/Views/ContentView.swift +++ b/RingLight/Features/RingLight/Views/ContentView.swift @@ -29,15 +29,20 @@ struct ContentView: View { Slider(value: $controller.intensity, in: 0.1...1) } - parameterSection(title: "Softness", valueLabel: String(format: "%.0f%%", controller.feather * 100)) { - Slider(value: $controller.feather, in: 0...0.9) - } - parameterSection(title: "Color temperature", valueLabel: "\(Int(controller.temperature))K") { Slider(value: $controller.temperature, in: 2800...7000, step: 50) } TemperaturePresetRow(controller: controller) + + Button { + NSApplication.shared.terminate(nil) + } label: { + Text("Quit RingLight") + .frame(maxWidth: .infinity) + } + .buttonStyle(.plain) + .foregroundColor(.secondary) } .padding(16) .frame(width: 360) From c9596fb84f9f29913df575854b68443e6ca70d7a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 17:30:10 +0000 Subject: [PATCH 3/3] Comment out softness slider and add divider before quit button Co-authored-by: Aayush9029 <43297314+Aayush9029@users.noreply.github.com> --- RingLight/Features/RingLight/Views/ContentView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RingLight/Features/RingLight/Views/ContentView.swift b/RingLight/Features/RingLight/Views/ContentView.swift index 9e499b8..92dc229 100644 --- a/RingLight/Features/RingLight/Views/ContentView.swift +++ b/RingLight/Features/RingLight/Views/ContentView.swift @@ -29,12 +29,18 @@ struct ContentView: View { Slider(value: $controller.intensity, in: 0.1...1) } +// parameterSection(title: "Softness", valueLabel: String(format: "%.0f%%", controller.feather * 100)) { +// Slider(value: $controller.feather, in: 0...0.9) +// } + parameterSection(title: "Color temperature", valueLabel: "\(Int(controller.temperature))K") { Slider(value: $controller.temperature, in: 2800...7000, step: 50) } TemperaturePresetRow(controller: controller) + Divider() + Button { NSApplication.shared.terminate(nil) } label: {