diff --git a/Cotabby/UI/MenuBarView.swift b/Cotabby/UI/MenuBarView.swift index c9371a1..1e89d4b 100644 --- a/Cotabby/UI/MenuBarView.swift +++ b/Cotabby/UI/MenuBarView.swift @@ -75,10 +75,6 @@ struct MenuBarView: View { .toggleStyle(.switch) .controlSize(.small) - Toggle("Include Clipboard Context", isOn: clipboardContextEnabledBinding) - .toggleStyle(.switch) - .controlSize(.small) - if let application = focusModel.latestExternalApplication, !TerminalAppDetector.isTerminal(bundleIdentifier: application.bundleIdentifier) { Toggle("Enable in \(application.applicationName)", isOn: appEnabledBinding(for: application)) @@ -86,7 +82,15 @@ struct MenuBarView: View { .controlSize(.small) } - Toggle("Show Indicator", isOn: showIndicatorBinding) + Toggle("Include Clipboard Context", isOn: clipboardContextEnabledBinding) + .toggleStyle(.switch) + .controlSize(.small) + + Toggle("Show Cotabby Indicator", isOn: showIndicatorBinding) + .toggleStyle(.switch) + .controlSize(.small) + + Toggle("Allow Multi-line Suggestions", isOn: multiLineEnabledBinding) .toggleStyle(.switch) .controlSize(.small) @@ -122,10 +126,6 @@ struct MenuBarView: View { .labelsHidden() .pickerStyle(.menu) } - - Toggle("Multi-line", isOn: multiLineEnabledBinding) - .toggleStyle(.switch) - .controlSize(.small) } .padding(.bottom, 12) } diff --git a/Cotabby/UI/SettingsView.swift b/Cotabby/UI/SettingsView.swift index 9674fc1..b7695a6 100644 --- a/Cotabby/UI/SettingsView.swift +++ b/Cotabby/UI/SettingsView.swift @@ -30,6 +30,7 @@ struct SettingsView: View { var body: some View { Form { settingsHeader + supportSection updatesSection uninstallSection generalSection @@ -413,6 +414,18 @@ struct SettingsView: View { } } + @ViewBuilder + private var supportSection: some View { + Section("Support") { + LabeledContent { + Link("Buy Me a Coffee", destination: URL(string: "https://buymeacoffee.com/cotabby")!) + } label: { + Text("Cotabby is free and open source. If it's useful to you, consider supporting development.") + .foregroundStyle(.secondary) + } + } + } + @ViewBuilder private var updatesSection: some View { Section("Updates") { diff --git a/README.md b/README.md index 25fd477..683deef 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,12 @@ Contributions are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, bui - Swift, SwiftUI, and AppKit, which together make the menu bar app, overlays, and settings UI possible - Everyone who has filed issues, tested prereleases, and contributed pull requests +## Support + +If Cotabby is useful to you, consider buying us a coffee: + +Buy Me A Coffee + ## Built by @FuJacob and @jam-cai