| Index: chrome/browser/ui/cocoa/tabs/tab_view.mm
|
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_view.mm b/chrome/browser/ui/cocoa/tabs/tab_view.mm
|
| index 98d1e5b792aa313e45c33ea28d0c80452fca32a9..026e3fc7d945a1ab7a05a8ca383e62e45f3b35ee 100644
|
| --- a/chrome/browser/ui/cocoa/tabs/tab_view.mm
|
| +++ b/chrome/browser/ui/cocoa/tabs/tab_view.mm
|
| @@ -107,7 +107,15 @@ ui::ThreePartImage& GetMaskImage() {
|
| return mask;
|
| }
|
|
|
| -ui::ThreePartImage& GetStrokeImage() {
|
| +ui::ThreePartImage& GetStrokeImage(bool active) {
|
| + if (!ui::MaterialDesignController::IsModeMaterial() && !active) {
|
| + CR_DEFINE_STATIC_LOCAL(
|
| + ui::ThreePartImage, inactiveStroke,
|
| + (imageForResourceID(IDR_TAB_INACTIVE_LEFT),
|
| + imageForResourceID(IDR_TAB_INACTIVE_CENTER),
|
| + imageForResourceID(IDR_TAB_INACTIVE_RIGHT)));
|
| + return inactiveStroke;
|
| + }
|
| CR_DEFINE_STATIC_LOCAL(
|
| ui::ThreePartImage, stroke,
|
| (imageForResourceID(IDR_TAB_ACTIVE_LEFT),
|
| @@ -477,7 +485,8 @@ CGFloat LineWidthFromContext(CGContextRef context) {
|
| // In MD, the tab stroke is always opaque.
|
| alpha = 1;
|
| }
|
| - GetStrokeImage().DrawInRect(bounds, NSCompositeSourceOver, alpha);
|
| + GetStrokeImage(state_ == NSOnState)
|
| + .DrawInRect(bounds, NSCompositeSourceOver, alpha);
|
| }
|
|
|
| - (void)drawRect:(NSRect)dirtyRect {
|
|
|