second commit

This commit is contained in:
Alex E. Tafoya
2026-09-17 16:15:02 -05:00
parent 87fe7927c4
commit 7e3801c7c6
10 changed files with 585 additions and 151 deletions
@@ -32,10 +32,19 @@ private struct GeneralPreferences: View {
@AppStorage(Configuration.Keys.showMagnifier) private var magnifier = true
@AppStorage(Configuration.Keys.showSelectionSize) private var selectionSize = true
@AppStorage(Configuration.Keys.windowCaptureMode) private var windowMode = WindowCaptureMode.window.rawValue
@AppStorage(Configuration.Keys.appearanceMode) private var appearance = AppearanceMode.system.rawValue
@State private var launchAtLogin = LaunchAtLogin.isEnabled
var body: some View {
Form {
Picker("Appearance:", selection: $appearance) {
ForEach(AppearanceMode.allCases, id: \.rawValue) { mode in
Text(mode.title).tag(mode.rawValue)
}
}
.onChange(of: appearance) { _, _ in
NotificationCenter.default.post(name: .appearanceChanged, object: nil)
}
Picker("After capture:", selection: $destination) {
ForEach(DestinationID.allCases.filter { $0 != .openWith }, id: \.rawValue) { item in
Text(item.title).tag(item.rawValue)