Fix macOS form style
This commit is contained in:
@@ -19,6 +19,7 @@ public struct MacApplication: Scene {
|
||||
.environment(\.showMenuBarExtra, $showMenuBarExtra)
|
||||
.environmentObject(environments)
|
||||
})
|
||||
.windowResizability(.contentSize)
|
||||
.commands {
|
||||
if showMenuBarExtra {
|
||||
CommandGroup(replacing: .appTermination) {
|
||||
|
||||
@@ -25,12 +25,15 @@ public struct MainView: View {
|
||||
private var body1: some View {
|
||||
NavigationSplitView {
|
||||
SidebarView()
|
||||
.navigationSplitViewColumnWidth(150)
|
||||
} detail: {
|
||||
NavigationStack {
|
||||
selection.contentView
|
||||
.navigationTitle(selection.title)
|
||||
}
|
||||
.navigationSplitViewColumnWidth(600)
|
||||
}
|
||||
.frame(minHeight: 470)
|
||||
.onAppear {
|
||||
environments.postReload()
|
||||
#if !DEBUG
|
||||
@@ -60,7 +63,6 @@ public struct MainView: View {
|
||||
.onReceive(environments.openSettings) {
|
||||
selection = .settings
|
||||
}
|
||||
.formStyle(.grouped)
|
||||
.environment(\.selection, $selection)
|
||||
.environment(\.importProfile, $importProfile)
|
||||
.environment(\.importRemoteProfile, $importRemoteProfile)
|
||||
|
||||
Reference in New Issue
Block a user