PM-Oberfläche: Favoriten/Navigator/Aufgaben, Tabs, PM-Filter, PM-Kacheln, IPTC-Layout wie PM, ⌘I Mass-Edit, ⌘U Upload, Code-Ersetzung live, 8 Farbklassen, paralleles + gecachtes Metadaten-Laden, BILDER/INPUT+SENT
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
d100249c12
commit
c0ee93995f
18 files changed
+1311
-515
No files matched your search
@@ -18,7 +18,8 @@ struct IPTCInfoWindow: View {
|
||||
HSplitView {
|
||||
VStack(spacing: 0) {
|
||||
ScrollView {
|
||||
IPTCFieldsForm(texts: $texts, dirty: dirty) { dirty.insert($0) }
|
||||
PMMetadataForm(texts: $texts, columns: 1, dirty: dirty, codes: state.codes,
|
||||
onEdit: { dirty.insert($0) }, extraAfterContent: AnyView(labelSection))
|
||||
.padding(14)
|
||||
}
|
||||
Divider()
|
||||
@@ -36,7 +37,7 @@ struct IPTCInfoWindow: View {
|
||||
}
|
||||
.padding(10)
|
||||
}
|
||||
.frame(minWidth: 480, idealWidth: 560)
|
||||
.frame(minWidth: 560, idealWidth: 640)
|
||||
|
||||
sidePanel.frame(minWidth: 380, idealWidth: 520)
|
||||
}
|
||||
@@ -47,6 +48,33 @@ struct IPTCInfoWindow: View {
|
||||
.task(id: item.map { state.previewURL(for: $0) }) { await loadImage() }
|
||||
}
|
||||
|
||||
/// PM "Image Preferences": color class label + stars of the current image.
|
||||
private var labelSection: some View {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
PMSectionHeader(title: "Image Preferences")
|
||||
HStack {
|
||||
Text("Label:").frame(width: 150, alignment: .leading)
|
||||
Picker("", selection: Binding(
|
||||
get: { item?.label?.pmColorClass ?? 0 },
|
||||
set: { n in if let item { state.setLabel(n == 0 ? nil : ColorLabel(pmColorClass: n), advance: false, only: item) } })) {
|
||||
Text("Keine").tag(0)
|
||||
ForEach(ColorLabel.allCases, id: \.self) { l in
|
||||
Text("\(l.pmColorClass) – \(l.germanName) (\(l.pmName))").tag(l.pmColorClass)
|
||||
}
|
||||
}
|
||||
.labelsHidden()
|
||||
}
|
||||
HStack {
|
||||
Text("Rating:").frame(width: 150, alignment: .leading)
|
||||
Picker("", selection: Binding(get: { item?.rating ?? 0 }, set: { n in if let item { state.setRating(n, advance: false, only: item) } })) {
|
||||
ForEach(0...5, id: \.self) { n in Text(n == 0 ? "Keine" : String(repeating: "★", count: n)).tag(n) }
|
||||
}
|
||||
.labelsHidden()
|
||||
.pickerStyle(.segmented)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Right side (preview + PM buttons)
|
||||
|
||||
private var sidePanel: some View {
|
||||
|
||||
Reference in new issue
Block a user