Browse Source

fix: tray title not inverting when highlighted (#13085)

Michael Khalil 6 years ago
parent
commit
ef1e2d6fe0
1 changed files with 5 additions and 0 deletions
  1. 5 0
      atom/browser/ui/tray_icon_cocoa.mm

+ 5 - 0
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: