Open Settings in its own roomy window, not the cramped popover
Settings was a NavigationLink pushed inside the 320pt menu-bar popover, so the grouped form was cramped and most controls sat below a non-obvious scroll (and showed a confusing "< Settings" back arrow). Add SettingsWindow (same standalone NSWindow pattern as the Editor/Templates windows) and open it from the menu-bar "Settings…" button. Drop the now-unused NavigationStack and the 320pt cap so the form uses real window width with normal macOS spacing; window is resizable.
This commit is contained in:
@@ -10,21 +10,19 @@ struct MenuBarView: View {
|
||||
@EnvironmentObject private var session: SessionController
|
||||
|
||||
var body: some View {
|
||||
NavigationStack {
|
||||
VStack(alignment: .leading, spacing: 12) {
|
||||
header
|
||||
Divider()
|
||||
recordingSection
|
||||
Divider()
|
||||
permissionsSection
|
||||
Divider()
|
||||
backendSection
|
||||
Divider()
|
||||
footer
|
||||
}
|
||||
.padding(14)
|
||||
.frame(width: 320)
|
||||
VStack(alignment: .leading, spacing: 12) {
|
||||
header
|
||||
Divider()
|
||||
recordingSection
|
||||
Divider()
|
||||
permissionsSection
|
||||
Divider()
|
||||
backendSection
|
||||
Divider()
|
||||
footer
|
||||
}
|
||||
.padding(14)
|
||||
.frame(width: 320)
|
||||
.onAppear { permissions.refresh() }
|
||||
.task { await refreshHealth() }
|
||||
}
|
||||
@@ -227,9 +225,7 @@ struct MenuBarView: View {
|
||||
|
||||
private var footer: some View {
|
||||
HStack {
|
||||
NavigationLink("Settings…") {
|
||||
SettingsView()
|
||||
}
|
||||
Button("Settings…") { SettingsWindow.shared.show(settings: settings) }
|
||||
Spacer()
|
||||
Button("Quit") { NSApplication.shared.terminate(nil) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user