Files
SnipMC/Sources/MenuBarContentView.swift
T
marcoandClaude Opus 4.6 d878e8e333 Rename app from Snipping Tool to SnipMC
Changes bundle ID, URL scheme, display name, project name,
and all user-facing references.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-01 22:49:38 +02:00

46 lines
1.1 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("Aus Zwischenablage bearbeiten") {
coordinator.openEditorFromClipboard()
}
Button("Bild bearbeiten…") {
coordinator.openEditorForFile()
}
Divider()
Button("Einstellungen…") {
SettingsWindowController.shared.show(coordinator: coordinator)
}
.keyboardShortcut(",")
Button("Über SnipMC…") {
AboutWindowController.shared.show()
}
Divider()
Button("Beenden") {
NSApplication.shared.terminate(nil)
}
.keyboardShortcut("q")
}
}