second commit
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user