macos: stabilize control connection wait

This commit is contained in:
Peter Steinberger
2025-12-08 21:31:33 +00:00
parent abca8535cf
commit 6298c586fd
3 changed files with 1810 additions and 1788 deletions

View File

@@ -552,26 +552,6 @@ private final class ClickCatcher: NSView {
}
}
private struct CloseHoverButton: View {
var onClose: () -> Void
var body: some View {
Button(action: self.onClose) {
Image(systemName: "xmark")
.font(.system(size: 12, weight: .bold))
.foregroundColor(Color.white.opacity(0.85))
.frame(width: 22, height: 22)
.background(Color.black.opacity(0.35))
.clipShape(Circle())
.shadow(color: Color.black.opacity(0.35), radius: 6, y: 2)
}
.buttonStyle(.plain)
.focusable(false)
.contentShape(Circle())
.padding(6)
}
}
private struct CloseButtonOverlay: View {
var isVisible: Bool
var onClose: () -> Void