summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_titlebar.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 21:35:43 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 21:35:43 +0000
commit1c25e879bed12692e57e954b288fa4c4d9c6d5e2 (patch)
treedad94b7ce3a6f087b95cf25ee1a4ee8b7e595afc /chrome/browser/gtk/browser_titlebar.cc
parent174cec74c38d2bb5d861e0e570d69b5dc3bef173 (diff)
downloadchromium_src-1c25e879bed12692e57e954b288fa4c4d9c6d5e2.zip
chromium_src-1c25e879bed12692e57e954b288fa4c4d9c6d5e2.tar.gz
chromium_src-1c25e879bed12692e57e954b288fa4c4d9c6d5e2.tar.bz2
GTK: Popup windows that use the custom frame should use the tab image instead of the frame.
This is how mac does things, and Miranda is going to change the windows version, too. BUG=21672 TEST=none Review URL: http://codereview.chromium.org/1775012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_titlebar.cc')
-rw-r--r--chrome/browser/gtk/browser_titlebar.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.cc b/chrome/browser/gtk/browser_titlebar.cc
index 9f0030d..4261981 100644
--- a/chrome/browser/gtk/browser_titlebar.cc
+++ b/chrome/browser/gtk/browser_titlebar.cc
@@ -421,8 +421,8 @@ void BrowserTitlebar::UpdateTitlebarAlignment() {
}
void BrowserTitlebar::UpdateTextColor() {
- if (app_mode_title_) {
- if (theme_provider_ && theme_provider_->UseGtkTheme()) {
+ if (app_mode_title_ && theme_provider_) {
+ if (theme_provider_->UseGtkTheme()) {
// We don't really have any good options here.
//
// Colors from window manager themes aren't exposed in GTK; the window
@@ -448,9 +448,10 @@ void BrowserTitlebar::UpdateTextColor() {
&frame_color, &gfx::kGdkWhite, &gfx::kGdkBlack);
gtk_util::SetLabelColor(app_mode_title_, &text_color);
} else {
- // TODO(tc): Seems like this color should be themable, but it's hardcoded
- // to white on Windows. http://crbug.com/18093
- gtk_util::SetLabelColor(app_mode_title_, &gfx::kGdkWhite);
+ GdkColor text_color = theme_provider_->GetGdkColor(window_has_focus_ ?
+ BrowserThemeProvider::COLOR_TAB_TEXT :
+ BrowserThemeProvider::COLOR_BACKGROUND_TAB_TEXT);
+ gtk_util::SetLabelColor(app_mode_title_, &text_color);
}
}
}