diff --git a/SRRecorderControl.m b/SRRecorderControl.m index 17de8d6e..970302cd 100755 --- a/SRRecorderControl.m +++ b/SRRecorderControl.m @@ -554,8 +554,11 @@ - (void)drawBackground:(NSRect)aDirtyRect NSBezierPath* path = [NSBezierPath bezierPathWithRoundedRect:frame xRadius:corner yRadius:corner]; path.lineWidth = 1; - [[[NSColor controlColor] colorWithAlphaComponent:opacity] setFill]; - [[[NSColor grayColor] colorWithAlphaComponent:opacity] setStroke]; + + CGContextSetAlpha(NSGraphicsContext.currentContext.CGContext, opacity); + + [[NSColor controlColor] setFill]; + [[NSColor grayColor] setStroke]; [path fill]; [path stroke];