release: iriz 0.2.0 - диктовка на своем Маке
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
struct IrizAppMain: App {
|
||||
@NSApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
||||
|
||||
var body: some Scene {
|
||||
MenuBarExtra {
|
||||
MenuContentView(state: appDelegate.menuState, appDelegate: appDelegate)
|
||||
} label: {
|
||||
MenuBarLabelView(state: appDelegate.menuState)
|
||||
}
|
||||
// .window, а не .menu: NSMenu не даёт ни кегля, ни веса, ни отступов —
|
||||
// иерархию в нём не построить (см. MenuContentView и VISUAL_SPEC §6).
|
||||
.menuBarExtraStyle(.window)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user