From ef1e2d6fe0190ca90f31033146297cc43897817b Mon Sep 17 00:00:00 2001 From: Michael Khalil Date: Fri, 15 Jun 2018 23:24:26 -0700 Subject: [PATCH] fix: tray title not inverting when highlighted (#13085) --- atom/browser/ui/tray_icon_cocoa.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom/browser/ui/tray_icon_cocoa.mm b/atom/browser/ui/tray_icon_cocoa.mm index 0487e07ea014..2c434d7a9e31 100644 --- a/atom/browser/ui/tray_icon_cocoa.mm +++ b/atom/browser/ui/tray_icon_cocoa.mm @@ -403,6 +403,11 @@ const CGFloat kVerticalTitleMargin = 2; return YES; } +- (void)setNeedsDisplay:(BOOL)display { + [self updateAttributedTitle]; + [super setNeedsDisplay:display]; +} + - (BOOL)shouldHighlight { switch (highlight_mode_) { case atom::TrayIcon::HighlightMode::ALWAYS: