second commit
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user