mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: tray title not inverting when highlighted (#13262)
This commit is contained in:
@@ -389,6 +389,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:
|
||||
|
||||
Reference in New Issue
Block a user