From 05dc04dacc2a139eee03e19eb3dd2940acb8f20c Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 21 Mar 2018 19:03:57 -0400 Subject: [PATCH] don't check darkmode for drawStatusBarBackgroundInRect (#12395) --- atom/browser/ui/tray_icon_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/ui/tray_icon_cocoa.mm b/atom/browser/ui/tray_icon_cocoa.mm index 91c35034db2b..46a1cc6bccb5 100644 --- a/atom/browser/ui/tray_icon_cocoa.mm +++ b/atom/browser/ui/tray_icon_cocoa.mm @@ -98,7 +98,7 @@ const CGFloat kVerticalTitleMargin = 2; // Draw the system bar background. [statusItem_ drawStatusBarBackgroundInRect:self.bounds - withHighlight:[self isHighlighted]]; + withHighlight:[self shouldHighlight]]; // Determine which image to use. NSImage* image = image_.get();