Do not change logic on highlighing

This commit is contained in:
Cheng Zhao 2017-11-28 17:37:58 +09:00
parent d1ebce0395
commit 0dc094fffc

View file

@ -91,7 +91,8 @@ const CGFloat kVerticalTitleMargin = 2;
CGFloat thickness = [[statusItem_ statusBar] thickness];
// Draw the system bar background.
[statusItem_ drawStatusBarBackgroundInRect:self.bounds withHighlight:[self shouldHighlight]];
[statusItem_ drawStatusBarBackgroundInRect:self.bounds
withHighlight:[self isHighlighted]];
// Determine which image to use.
NSImage* image = image_.get();