PM-Prefs (Tag/Farbe/Sterne) lesen+schreiben, Datum Capture Time, Zoom bis einstellbarem Maximum, Ingest im PM-Aufbau (gesperrt/RAW-Filter, Sequenz, inkrementell, Auswerfen), App-Icon

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-04 00:05:21 +00:00
1 parent c0ee93995f
commit 8effd1af0c
25 files changed
+885 -131

No files matched your search

+41 -1
View File
@@ -138,7 +138,9 @@ struct PMFieldRow: View {
.padding(.top, 3)
Group {
if let h = height {
if field.id == "dateCreated" {
DateFieldEditor(text: $text)
} else if let h = height {
TextEditor(text: $text)
.font(.system(size: 13))
.scrollContentBackground(.hidden)
@@ -173,3 +175,41 @@ struct PMFieldRow: View {
}
}
}
/// PM's Date row: popup "Capture Time" / "Today" / own date.
struct DateFieldEditor: View {
@Binding var text: String
enum Mode: String, CaseIterable { case capture = "Capture Time", today = "Heute", custom = "Datum eingeben", none = "Kein Datum" }
private var mode: Mode {
switch text {
case "{capturetime}": return .capture
case "{today}": return .today
case "": return .none
default: return .custom
}
}
var body: some View {
HStack {
Picker("", selection: Binding(get: { mode }, set: { m in
switch m {
case .capture: text = "{capturetime}"
case .today: text = "{today}"
case .none: text = ""
case .custom: if mode != .custom { text = ISO8601DateFormatter.string(from: Date(), timeZone: .current, formatOptions: [.withFullDate]) }
}
})) {
ForEach(Mode.allCases, id: \.self) { Text($0.rawValue).tag($0) }
}
.labelsHidden()
.frame(width: 170)
if mode == .custom {
TextField("JJJJ-MM-TT [HH:MM:SS]", text: $text).textFieldStyle(.roundedBorder)
} else {
Spacer()
}
}
}
}