chore: Sprachmittler OpenCode starter kit
This commit is contained in:
commit
374085ec2f
94 files changed
+4563
No files matched your search
@@ -0,0 +1,35 @@
|
||||
import AppKit
|
||||
import SwiftUI
|
||||
|
||||
/// Entry point. Keep this file thin: scenes only, no business logic (ARCHITECTURE §3).
|
||||
@main
|
||||
struct SprachmittlerApp: App {
|
||||
@NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
||||
|
||||
var body: some Scene {
|
||||
MenuBarExtra("Sprachmittler", systemImage: "translate") {
|
||||
// Replaced by MenuBar/StatusMenu.swift.
|
||||
Button("Translate Clipboard Text") {}
|
||||
.disabled(true)
|
||||
Divider()
|
||||
Button("Set up Sprachmittler…") {}
|
||||
.disabled(true)
|
||||
SettingsLink {
|
||||
Text("Settings…")
|
||||
}
|
||||
Divider()
|
||||
Button("Quit Sprachmittler") {
|
||||
NSApplication.shared.terminate(nil)
|
||||
}
|
||||
.keyboardShortcut("q")
|
||||
}
|
||||
.menuBarExtraStyle(.menu)
|
||||
|
||||
Settings {
|
||||
// Replaced by Settings/SettingsView.swift.
|
||||
Text("Settings")
|
||||
.padding()
|
||||
.frame(width: 480, height: 320)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user