mirror of
https://github.com/electron/electron.git
synced 2026-01-28 00:38:35 -05:00
fix: tray title not inverting when highlighted (#13085)
This commit is contained in:
committed by
Samuel Attard
parent
83dc8cc13b
commit
ef1e2d6fe0
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user