From 547d64f13297827cee33ceb76eb64486c23f090d Mon Sep 17 00:00:00 2001 From: Luke Griffioen Date: Mon, 23 Feb 2026 15:36:27 -0500 Subject: [PATCH] fix hotkey views not working in dark mode --- SRRecorderControl.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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];