Skip to content

Commit

Permalink
Merge pull request ViennaRSS#14 from barijaona/vienna-issue1208
Browse files Browse the repository at this point in the history
Fix problem : 
> When switching back to light mode, or when coming from the background
> some tabs seem grayed out. As soon as hovering with the mouse over them,
> they return to normal color.
  • Loading branch information
barijaona authored Jan 5, 2019
2 parents b98bee8 + b2248be commit 8b39969
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion MMTabBarView/MMTabBarView/MMTabBarView.m
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ - (void)windowStatusDidChange:(NSNotification *)notification {

[self _updateImages];

[self setNeedsDisplay:YES];
[self setNeedsUpdate:YES];
}

#pragma mark -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ - (void)drawBezelOfTabBarView:(MMTabBarView *)tabBarView inRect:(NSRect)rect
// anything substantial. Instead, let's get the private iVar using this means:
MMAttachedTabBarButton *addTabButton = [tabBarView valueForKey:@"_addTabButton"];

// If we don't invalidate the whole rect, then only the button will fill
// with the new color.
[tabBarView setNeedsDisplayInRect:rect];

// In Mojave, during a mouse press there's also another highlighting; however MMTabBarView
// doesn't provide the architecture that we need to implement this, but with the hack
// above we can at least perform the hover behavior of Mojave.
Expand Down

0 comments on commit 8b39969

Please sign in to comment.