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

Unified Diff: chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm

Issue 2687633002: Fix using theme colors for the download shelf's close button. (Closed)
Patch Set: Created 3 years, 10 months 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
Index: chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm b/chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm
index c74832b77a6e9579ddbff216bdaa035c71610725..5e7c9774dd0fc509178d4b74acb5df9e68dc3088 100644
--- a/chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm
@@ -6,6 +6,7 @@
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/themes/theme_service.h"
+#include "chrome/browser/ui/cocoa/hover_close_button.h"
#import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
#import "chrome/browser/ui/cocoa/view_id_util.h"
#import "ui/base/cocoa/nsview_additions.h"
@@ -61,6 +62,14 @@
}
}
+- (void)viewWillDraw {
+ if (const ui::ThemeProvider* themeProvider = [[self window] themeProvider]) {
+ [closeButton_
+ setIconColor:themeProvider->GetColor(ThemeProperties::COLOR_TAB_TEXT)];
+ }
+ [super viewWillDraw];
+}
+
// Mouse down events on the download shelf should not allow dragging the parent
// window around.
- (BOOL)mouseDownCanMoveWindow {
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.h ('k') | chrome/browser/ui/cocoa/hover_close_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698