Design-Fixes: Einstellungen nicht mehr abgeschnitten (gruppierte Formulare, warme Zeilen), Ingest-Kartenliste als Karten mit Leerzustand, Upload-Fenster neu (Ziel-Karten, Optionen, Zusammenfassung)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
1 parent
54f5742a60
commit
22b2611228
4 files changed
+245
-76
No files matched your search
@@ -73,7 +73,7 @@ struct GeneralSettings: View {
|
||||
Toggle("Nach Bewertung/Tag automatisch zum nächsten Bild", isOn: $state.settings.autoAdvance)
|
||||
Text("1–8 = Farbklasse · 0 = keine · ⌥1–5 = Sterne · T = Tag · I = IPTC-Info · ⌘I = IPTC für Auswahl · ⌘U = Hochladen · ⌘E = Lightroom · ⌘⌥S = INPUT ⇄ SENT")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("Zoom") {
|
||||
Picker("Maximaler Zoom in der Vorschau", selection: $state.settings.maxZoom) {
|
||||
Text("100 %").tag(1.0); Text("200 %").tag(2.0); Text("400 %").tag(4.0); Text("800 %").tag(8.0); Text("1600 %").tag(16.0)
|
||||
@@ -82,18 +82,18 @@ struct GeneralSettings: View {
|
||||
Text("Größte Vorschaubilder: \(Int(state.settings.maxThumbnailSize)) px")
|
||||
}
|
||||
Text("Vorschau: Z = Einpassen/100 %, + / − oder Trackpad zum Zoomen.").font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("Ansicht") {
|
||||
Toggle("Matchday-Ansicht (Teamleiste, Spieler:innen-Liste, Teamfarben)", isOn: $state.settings.jersey.matchday)
|
||||
if state.settings.jersey.matchday && state.settings.jersey.teams.count < 2 {
|
||||
Text("Braucht zwei Teams in Bild → Trikot-Erkennung einrichten.").font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
Toggle("IPTC-Panel neben der Vorschau", isOn: $state.settings.loupePanel)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("Ingest") {
|
||||
Toggle("Ingest-Fenster öffnen, wenn eine Speicherkarte erkannt wird", isOn: $state.settings.autoIngestOnCardMount)
|
||||
Toggle("Karte nach dem Ingest automatisch auswerfen", isOn: $state.settings.ingest.unmountAfter)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("exiftool") {
|
||||
HStack {
|
||||
TextField("Pfad (leer = automatisch)", text: $state.settings.exiftoolPath)
|
||||
@@ -104,12 +104,12 @@ struct GeneralSettings: View {
|
||||
} else {
|
||||
Label("Nicht gefunden – Terminal: brew install exiftool", systemImage: "xmark.octagon.fill").foregroundStyle(.red)
|
||||
}
|
||||
}
|
||||
}.lkRow()
|
||||
Section("Variablen") {
|
||||
TextField("Datumsformat für {date}", text: $state.settings.dateFormat)
|
||||
Text("z. B. dd.MM.yyyy → 03.11.2026 · d. MMMM yyyy → 3. November 2026")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
}.lkRow()
|
||||
}
|
||||
.lkForm()
|
||||
}
|
||||
@@ -144,6 +144,7 @@ struct FTPSettings: View {
|
||||
|
||||
if let i = index {
|
||||
Form {
|
||||
Section("Server") {
|
||||
TextField("Name", text: $state.settings.ftpDestinations[i].name)
|
||||
Picker("Protokoll", selection: Binding(
|
||||
get: { state.settings.ftpDestinations[i].proto },
|
||||
@@ -175,6 +176,7 @@ struct FTPSettings: View {
|
||||
if testing { ProgressView().controlSize(.small) }
|
||||
Text(testResult).font(.caption).lineLimit(3)
|
||||
}
|
||||
}.lkRow()
|
||||
}
|
||||
.lkForm()
|
||||
.onAppear { password = Keychain.get(state.settings.ftpDestinations[i].keychainAccount) ?? "" }
|
||||
@@ -208,6 +210,7 @@ struct ImmichSettingsView: View {
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
Section("Immich") {
|
||||
Toggle("Immich-Upload aktivieren", isOn: $state.settings.immich.enabled)
|
||||
TextField("Server-URL", text: $state.settings.immich.serverURL, prompt: Text("https://immich.example.de"))
|
||||
SecureField("API-Schlüssel (Schlüsselbund)", text: $apiKey)
|
||||
@@ -229,6 +232,7 @@ struct ImmichSettingsView: View {
|
||||
}
|
||||
Text("API-Schlüssel in Immich: Konto-Einstellungen → API-Schlüssel. Benötigte Rechte: asset.upload, album.read, album.create, albumAsset.create.")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
}.lkRow()
|
||||
}
|
||||
.lkForm()
|
||||
.onAppear { apiKey = Keychain.get(ImmichSettings.keychainAccount) ?? "" }
|
||||
@@ -267,16 +271,16 @@ struct LightroomSettingsView: View {
|
||||
if !pluginMessage.isEmpty { Text(pluginMessage).font(.caption) }
|
||||
Text("Ohne Plugin öffnet ⌘⇧L den normalen Importdialog von Lightroom.")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("Import") {
|
||||
TextField("Entwicklungsvorgabe (exakter Name, optional „Ordner/Name“)", text: $state.settings.lightroom.developPreset)
|
||||
TextField("Sammlung (leer = keine)", text: $state.settings.lightroom.collection)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("Bearbeiten (⌘E)") {
|
||||
Toggle("Entwicklungsvorgabe auch bei ⌘E anwenden", isOn: $state.settings.lightroom.presetOnEdit)
|
||||
Text("⌘E importiert die Auswahl in den offenen Katalog und öffnet das Entwickeln-Modul.")
|
||||
.font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("JPEG-Export (⌘⌥L) → SENT") {
|
||||
Picker("Exportziel", selection: $state.settings.lightroom.exportTarget) {
|
||||
ForEach(ExportTarget.allCases, id: \.self) { Text($0.title).tag($0) }
|
||||
@@ -301,13 +305,13 @@ struct LightroomSettingsView: View {
|
||||
Text("sRGB").tag("sRGB"); Text("Adobe RGB").tag("AdobeRGB")
|
||||
}
|
||||
Toggle("Original-IPTC nach Export erneut schreiben (PM-identischer Aufbau)", isOn: $state.settings.lightroom.rewriteIPTCAfterExport)
|
||||
}
|
||||
}.lkRow()
|
||||
Section("Nach dem Export automatisch hochladen") {
|
||||
ForEach(state.settings.ftpDestinations) { d in
|
||||
Toggle("FTP: \(d.name)", isOn: uploadBinding(d.id.uuidString))
|
||||
}
|
||||
Toggle("Immich", isOn: uploadBinding("immich")).disabled(!state.settings.immich.enabled)
|
||||
}
|
||||
}.lkRow()
|
||||
}
|
||||
.lkForm()
|
||||
}
|
||||
@@ -340,7 +344,7 @@ struct CodesSettings: View {
|
||||
Section("Code-Ersetzung") {
|
||||
Text("\(state.codeLibrary.sets.filter(\.enabled).count) von \(state.codeLibrary.sets.count) Teams aktiv · \(state.codes.table.count) Codes")
|
||||
Button("Code-Ersetzungen öffnen … (⌘⇧K)") { state.openWindow("codes") }
|
||||
}
|
||||
}.lkRow()
|
||||
}
|
||||
.lkForm()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user