summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-07 21:17:16 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-07 21:17:16 +0000
commit474604c80b25e9d4c7eaf6528148b9babedeba28 (patch)
tree3e25110805db35953d72134311e18e4ba9f13700
parent10bb8c9454ea6130d84cf7c9cded5c479e270130 (diff)
downloadchromium_src-474604c80b25e9d4c7eaf6528148b9babedeba28.zip
chromium_src-474604c80b25e9d4c7eaf6528148b9babedeba28.tar.gz
chromium_src-474604c80b25e9d4c7eaf6528148b9babedeba28.tar.bz2
Use the inactive window overlay when the window is inactive.
TEST=Install the Zen Spring theme and activate a different window. The tree overlay should be lighter. Review URL: http://codereview.chromium.org/164186 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22791 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 5d23c1f..910317e 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -477,7 +477,8 @@ gboolean BrowserWindowGtk::OnCustomFrameExpose(GtkWidget* widget,
if (theme_provider->HasCustomImage(IDR_THEME_FRAME_OVERLAY)) {
GdkPixbuf* theme_overlay = theme_provider->GetPixbufNamed(
- IDR_THEME_FRAME_OVERLAY);
+ window->IsActive() ? IDR_THEME_FRAME_OVERLAY
+ : IDR_THEME_FRAME_OVERLAY_INACTIVE);
gdk_cairo_set_source_pixbuf(cr, theme_overlay, 0, 0);
cairo_paint(cr);
}