diff options
Diffstat (limited to 'chrome/browser/cocoa/gradient_button_cell.mm')
-rw-r--r-- | chrome/browser/cocoa/gradient_button_cell.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/gradient_button_cell.mm b/chrome/browser/cocoa/gradient_button_cell.mm index d5b40b9..4cab381 100644 --- a/chrome/browser/cocoa/gradient_button_cell.mm +++ b/chrome/browser/cocoa/gradient_button_cell.mm @@ -517,7 +517,8 @@ static const NSTimeInterval kAnimationContinuousCycleDuration = 0.4; innerPath:&innerPath clipPath:NULL]; - BOOL pressed = [self isHighlighted]; + BOOL pressed = ([((NSControl*)[self controlView]) isEnabled] && + [self isHighlighted]); NSWindow* window = [controlView window]; ThemeProvider* themeProvider = [window themeProvider]; BOOL active = [window isKeyWindow] || [window isMainWindow]; |