diff options
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_toolbar_view.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm b/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm index 4a652aa..433f30f 100644 --- a/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm +++ b/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm @@ -23,14 +23,16 @@ const CGFloat kBorderRadius = 3.0; @implementation BookmarkBarToolbarView - (BOOL)isOpaque { - return YES; + return [controller_ drawAsFloatingBar]; } - (void)drawRect:(NSRect)rect { if ([controller_ drawAsFloatingBar]) { [self drawRectAsFloating:rect]; } else { - [super drawRect:rect]; + NSPoint phase = [self gtm_themePatternPhase]; + [[NSGraphicsContext currentContext] setPatternPhase:phase]; + [self drawBackground]; } } |