Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6926)

Unified Diff: chrome/browser/ui/cocoa/notifications/balloon_controller.mm

Issue 11691003: mac: Replace notification wrench pdf with a png (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: notest Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/theme/balloon_wrench.pdf ('k') | chrome/chrome_dll_bundle.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/notifications/balloon_controller.mm
diff --git a/chrome/browser/ui/cocoa/notifications/balloon_controller.mm b/chrome/browser/ui/cocoa/notifications/balloon_controller.mm
index e0af6ca8a77c0e53169b1b3905ee349e055831c7..b377b3d8df27561fbb07aef8eec7209705af46f5 100644
--- a/chrome/browser/ui/cocoa/notifications/balloon_controller.mm
+++ b/chrome/browser/ui/cocoa/notifications/balloon_controller.mm
@@ -61,12 +61,15 @@ const int kRightMargin = 2;
DCHECK([self window]);
DCHECK_EQ(self, [[self window] delegate]);
- NSImage* image = gfx::GetCachedImageWithName(@"balloon_wrench.pdf");
- [optionsButton_ setDefaultImage:image];
- [optionsButton_ setDefaultOpacity:0.6];
- [optionsButton_ setHoverImage:image];
- [optionsButton_ setHoverOpacity:0.9];
- [optionsButton_ setPressedImage:image];
+ ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
+ [optionsButton_ setDefaultImage:
+ rb.GetNativeImageNamed(IDR_BALLOON_WRENCH).ToNSImage()];
+ [optionsButton_ setDefaultOpacity:1.0];
+ [optionsButton_ setHoverImage:
+ rb.GetNativeImageNamed(IDR_BALLOON_WRENCH_H).ToNSImage()];
+ [optionsButton_ setHoverOpacity:1.0];
+ [optionsButton_ setPressedImage:
+ rb.GetNativeImageNamed(IDR_BALLOON_WRENCH_P).ToNSImage()];
[optionsButton_ setPressedOpacity:1.0];
[[optionsButton_ cell] setHighlightsBy:NSNoCellMask];
« no previous file with comments | « chrome/app/theme/balloon_wrench.pdf ('k') | chrome/chrome_dll_bundle.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698