Files
SnipMC/Sources/MenuBarContentView.swift
T
marcoandClaude Opus 4.6 f6e90047a8 Add About window with creator and version info
Shows app icon, version, "Freeware" badge, creator (Marco Wende —
Wende.IT), and link to wende.it. Accessible via "Über Snipping Tool…"
in the menu bar.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 17:47:27 +02:00

42 lines
1.0 KiB
Swift

import AppKit
import SwiftUI
struct MenuBarContentView: View {
@EnvironmentObject var coordinator: AppCoordinator
var body: some View {
Button("Ganzer Bildschirm") { coordinator.capture(mode: .fullScreen) }
Button("Fenster") { coordinator.capture(mode: .window) }
Button("Bereich auswählen") { coordinator.capture(mode: .region) }
Divider()
Button("Letzte Aufnahme bearbeiten…") {
coordinator.openEditorForLastCapture()
}
.disabled(coordinator.lastCapturedURL == nil)
Button("Bild bearbeiten…") {
coordinator.openEditorForFile()
}
Divider()
Button("Einstellungen…") {
SettingsWindowController.shared.show(coordinator: coordinator)
}
.keyboardShortcut(",")
Button("Über Snipping Tool…") {
AboutWindowController.shared.show()
}
Divider()
Button("Beenden") {
NSApplication.shared.terminate(nil)
}
.keyboardShortcut("q")
}
}