second commit

This commit is contained in:
Alex E. Tafoya
2026-09-17 16:15:02 -05:00
parent 87fe7927c4
commit 7e3801c7c6
10 changed files with 585 additions and 151 deletions
+6 -2
View File
@@ -329,8 +329,12 @@ final class OverlayView: NSView {
box.origin.x = min(max(4, box.origin.x), bounds.width - box.width - 4)
box.origin.y = min(max(4, box.origin.y), bounds.height - box.height - 4)
NSColor(calibratedWhite: 0, alpha: 0.75).setFill()
NSBezierPath(roundedRect: box, xRadius: 5, yRadius: 5).fill()
let chip = NSBezierPath(roundedRect: box, xRadius: Theme.controlRadius, yRadius: Theme.controlRadius)
NSColor(calibratedWhite: 0, alpha: 0.72).setFill()
chip.fill()
NSColor(calibratedWhite: 1, alpha: 0.18).setStroke()
chip.lineWidth = 1
chip.stroke()
(text as NSString).draw(at: CGPoint(x: box.minX + 6, y: box.minY + 4), withAttributes: attributes)
}