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..92dc229 100644 --- a/RingLight/Features/RingLight/Views/ContentView.swift +++ b/RingLight/Features/RingLight/Views/ContentView.swift @@ -29,15 +29,26 @@ 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: "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: { + Text("Quit RingLight") + .frame(maxWidth: .infinity) + } + .buttonStyle(.plain) + .foregroundColor(.secondary) } .padding(16) .frame(width: 360)