mac: panel highlight when webchat open

This commit is contained in:
Peter Steinberger
2025-12-09 21:41:24 +01:00
parent 9131a69983
commit 6675c273fd
2 changed files with 27 additions and 0 deletions

View File

@@ -59,6 +59,10 @@ struct ClawdisApp: App {
guard let button = item.button else { return }
if button.subviews.contains(where: { $0 is StatusItemMouseHandlerView }) { return }
WebChatManager.shared.onPanelVisibilityChanged = { [self] visible in
self.statusItem?.button?.highlight(visible)
}
let handler = StatusItemMouseHandlerView()
handler.translatesAutoresizingMaskIntoConstraints = false
handler.onLeftClick = { [self] in self.toggleWebChatPanel() }