mac: move debug toggles to footer

main
Peter Steinberger 2025-12-10 02:48:19 +01:00
parent c4f0236ec0
commit 68c5d61d60
1 changed files with 13 additions and 12 deletions

View File

@ -33,15 +33,6 @@ struct DebugSettings: View {
Text(self.healthStore.summaryLine) Text(self.healthStore.summaryLine)
} }
} }
LabeledContent("Icon override") {
Picker("Icon override", selection: self.bindingOverride) {
ForEach(IconOverrideSelection.allCases) { option in
Text(option.label).tag(option.rawValue)
}
}
.labelsHidden()
.frame(maxWidth: 280)
}
LabeledContent("CLI helper") { LabeledContent("CLI helper") {
let loc = CLIInstaller.installedLocation() let loc = CLIInstaller.installedLocation()
Text(loc ?? "missing") Text(loc ?? "missing")
@ -218,9 +209,6 @@ struct DebugSettings: View {
.foregroundStyle(.tertiary) .foregroundStyle(.tertiary)
} }
} }
Toggle("Use SwiftUI web chat (glass, gateway WS)", isOn: self.$webChatSwiftUIEnabled)
.toggleStyle(.switch)
.help("When enabled, the menu bar chat window/panel uses the native SwiftUI UI instead of the bundled WKWebView.")
Button("Send Test Notification") { Button("Send Test Notification") {
Task { await DebugActions.sendTestNotification() } Task { await DebugActions.sendTestNotification() }
} }
@ -267,6 +255,19 @@ struct DebugSettings: View {
Button("Clear log") { GatewayProcessManager.shared.clearLog() } Button("Clear log") { GatewayProcessManager.shared.clearLog() }
} }
.buttonStyle(.bordered) .buttonStyle(.bordered)
Divider()
LabeledContent("Icon override") {
Picker("Icon override", selection: self.bindingOverride) {
ForEach(IconOverrideSelection.allCases) { option in
Text(option.label).tag(option.rawValue)
}
}
.labelsHidden()
.frame(maxWidth: 280)
}
Toggle("Use SwiftUI web chat (glass, gateway WS)", isOn: self.$webChatSwiftUIEnabled)
.toggleStyle(.switch)
.help("When enabled, the menu bar chat window/panel uses the native SwiftUI UI instead of the bundled WKWebView.")
Spacer(minLength: 8) Spacer(minLength: 8)
} }
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)