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

Unified Diff: chrome/browser/cocoa/styled_text_field_cell.mm

Issue 3140009: [Mac] Fix aesthetic issues with themes given the new TopChrome changes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/browser/cocoa/gradient_button_cell.mm ('k') | chrome/browser/cocoa/tab_strip_view.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/styled_text_field_cell.mm
===================================================================
--- chrome/browser/cocoa/styled_text_field_cell.mm (revision 55783)
+++ chrome/browser/cocoa/styled_text_field_cell.mm (working copy)
@@ -129,7 +129,8 @@
// Paint button background image if there is one (otherwise the border won't
// look right).
- ThemeProvider* themeProvider = [[controlView window] themeProvider];
+ BrowserThemeProvider* themeProvider =
+ static_cast<BrowserThemeProvider*>([[controlView window] themeProvider]);
if (themeProvider) {
NSColor* backgroundImageColor =
themeProvider->GetNSImageColorNamed(IDR_THEME_BUTTON_BACKGROUND, false);
@@ -171,8 +172,11 @@
}
// Draw optional bezel below bottom stroke.
- if ([self shouldDrawBezel]) {
- [[NSColor colorWithCalibratedWhite:0.96 alpha:1.0] set];
+ if ([self shouldDrawBezel] && themeProvider &&
+ themeProvider->UsingDefaultTheme()) {
+
+ [themeProvider->GetNSColor(
+ BrowserThemeProvider::COLOR_TOOLBAR_BEZEL, true) set];
NSRect bezelRect = NSMakeRect(cellFrame.origin.x,
NSMaxY(cellFrame) - 0.5,
NSWidth(cellFrame),
« no previous file with comments | « chrome/browser/cocoa/gradient_button_cell.mm ('k') | chrome/browser/cocoa/tab_strip_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698