From 474604c80b25e9d4c7eaf6528148b9babedeba28 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Fri, 7 Aug 2009 21:17:16 +0000 Subject: 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 --- chrome/browser/gtk/browser_window_gtk.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.1