Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Sources/Pesty/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.")
Expand Down