| Index: chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| index 8334d31dd830815a074bd3be78df351dac30b8f8..a92605484adbb3cd41ccd7736830c54995ff7690 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
| @@ -402,7 +402,19 @@ - (void)setController:(TabStripController*)controller {
|
|
|
| - (void)windowDidChangeTheme {
|
| [self setNeedsDisplay:YES];
|
| + [self updateVisualEffectState];
|
| +}
|
| +
|
| +- (void)windowDidChangeActive {
|
| + [self setNeedsDisplay:YES];
|
| +}
|
| +
|
| +- (void)setVisualEffectsDisabledForFullscreen:(BOOL)disabled {
|
| + visualEffectsDisabledForFullscreen_ = disabled;
|
| + [self updateVisualEffectState];
|
| +}
|
|
|
| +- (void)updateVisualEffectState {
|
| // Configure the NSVisualEffectView so that it does nothing if the user has
|
| // switched to a custom theme, or uses vibrancy if the user has switched back
|
| // to the default theme.
|
| @@ -411,8 +423,8 @@ - (void)windowDidChangeTheme {
|
| if (!visualEffectView || !themeProvider) {
|
| return;
|
| }
|
| -
|
| - if (themeProvider->HasCustomImage(IDR_THEME_FRAME) ||
|
| + if (visualEffectsDisabledForFullscreen_ ||
|
| + themeProvider->HasCustomImage(IDR_THEME_FRAME) ||
|
| themeProvider->HasCustomColor(ThemeProperties::COLOR_FRAME)) {
|
| [visualEffectView setState:NSVisualEffectStateInactive];
|
| } else {
|
| @@ -420,8 +432,4 @@ - (void)windowDidChangeTheme {
|
| }
|
| }
|
|
|
| -- (void)windowDidChangeActive {
|
| - [self setNeedsDisplay:YES];
|
| -}
|
| -
|
| @end
|
|
|