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

This commit is contained in:
Michael Khalil 2018-06-15 23:24:26 -07:00 committed by Samuel Attard
parent 83dc8cc13b
commit ef1e2d6fe0

View file

@ -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: