From b26d6575f2e7b133c7d87753e6f175b02cfc6f61 Mon Sep 17 00:00:00 2001 From: Alvie Stoddard Date: Thu, 23 Jul 2026 21:59:44 -0700 Subject: [PATCH] Use native switches in Settings --- Sources/Pesty/Settings/SettingsView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Pesty/Settings/SettingsView.swift b/Sources/Pesty/Settings/SettingsView.swift index 2a08bbe..6986e98 100644 --- a/Sources/Pesty/Settings/SettingsView.swift +++ b/Sources/Pesty/Settings/SettingsView.swift @@ -34,10 +34,14 @@ private struct GeneralSettings: View { Section("Behavior") { #if !MAS Toggle("Paste directly into the active app", isOn: $settings.pasteDirectly) + .toggleStyle(.switch) #endif Toggle("Ignore passwords (concealed clips)", isOn: $settings.ignoreConcealed) + .toggleStyle(.switch) Toggle("Play sound on paste", isOn: $settings.playSound) + .toggleStyle(.switch) Toggle("Launch at login", isOn: $settings.launchAtLogin) + .toggleStyle(.switch) VStack(alignment: .leading) { LabeledContent("Bar height", value: "\(Int(settings.barHeight)) px") Slider(value: $settings.barHeight, in: 300...720, step: 10) @@ -52,6 +56,7 @@ private struct GeneralSettings: View { Toggle("Sync clipboard via iCloud Drive", isOn: Binding( get: { settings.iCloudSync }, set: { _ in AppController.shared.toggleICloudSync() })) + .toggleStyle(.switch) Text(ClipboardStore.shared.iCloudAvailable ? "Keeps your history and pinboards in sync across your Macs through iCloud Drive." : "Sign in to iCloud and enable iCloud Drive to use sync.")