Initial commit: Snipping Tool menu bar screenshot app
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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("Einstellungen…") {
|
||||
SettingsWindowController.shared.show(coordinator: coordinator)
|
||||
}
|
||||
.keyboardShortcut(",")
|
||||
|
||||
Divider()
|
||||
|
||||
Button("Beenden") {
|
||||
NSApplication.shared.terminate(nil)
|
||||
}
|
||||
.keyboardShortcut("q")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user