mac: add swiftui web chat option

This commit is contained in:
Peter Steinberger
2025-12-10 02:00:50 +01:00
parent 70fb4d452e
commit 83a2a7a1c2
6 changed files with 698 additions and 29 deletions

View File

@@ -22,6 +22,7 @@ struct DebugSettings: View {
@State private var portReports: [DebugActions.PortReport] = []
@State private var portKillStatus: String?
@State private var pendingKill: DebugActions.PortListener?
@AppStorage(webChatSwiftUIEnabledKey) private var webChatSwiftUIEnabled: Bool = false
var body: some View {
ScrollView(.vertical) {
@@ -217,6 +218,9 @@ struct DebugSettings: View {
.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") {
Task { await DebugActions.sendTestNotification() }
}