From 25764361236ad16912177780e6bfb3ce4a537dca Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Tue, 15 Sep 2009 18:05:12 +0000 Subject: Make sure the text color is set correctly for incognito themes until we theme them correctly BUG=20707 TEST=tab text appears correctly in incognito. Review URL: http://codereview.chromium.org/196123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26232 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/browser_window_controller.mm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index 3c7b6e8..2e98d78 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -1281,12 +1281,25 @@ willPositionSheet:(NSWindow*)sheet theme = [[GTMTheme alloc] init]; // "Leak" it in the cache. cache[key] = theme; + + // TODO(pinkerton): Need to be able to theme the entire incognito window + // http://crbug.com/18568 The hardcoding of the colors here will need to be + // removed when that bug is addressed, but are here in order for things to be + // usable in the meantime. if (isOffTheRecord) { NSColor* incognitoColor = [NSColor colorWithCalibratedRed:83/255.0 green:108.0/255.0 blue:140/255.0 alpha:1.0]; [theme setBackgroundColor:incognitoColor]; + [theme setValue:[NSColor blackColor] + forAttribute:@"textColor" + style:GTMThemeStyleToolBar + state:GTMThemeStateActiveWindow]; + [theme setValue:[NSColor blackColor] + forAttribute:@"textColor" + style:GTMThemeStyleTabBarDeselected + state:GTMThemeStateActiveWindow]; return theme; } -- cgit v1.1