From 6ee6185045be58242771fe6e0504b4147e0c1a2d Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Tue, 21 Jul 2009 19:21:50 +0000 Subject: GTK Themes: Get text color from a label object; this should fix some theme text problems. GTK Themes can set colors on a per widget basis, and many do. Previously we were getting the text color from a GtkWindow object, which sometimes is wrong--the theme just sets the text color on labels... Review URL: http://codereview.chromium.org/159143 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21200 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/gtk_theme_provider.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/gtk/gtk_theme_provider.h') diff --git a/chrome/browser/gtk/gtk_theme_provider.h b/chrome/browser/gtk/gtk_theme_provider.h index ae3537e..424ba76 100644 --- a/chrome/browser/gtk/gtk_theme_provider.h +++ b/chrome/browser/gtk/gtk_theme_provider.h @@ -90,9 +90,10 @@ class GtkThemeProvider : public BrowserThemeProvider, // Whether we should be using gtk rendering. bool use_gtk_; - // A GtkWidget that exists only so we can look at its properties (and take - // its colors). + // GtkWidgets that exist only so we can look at their properties (and take + // their colors). GtkWidget* fake_window_; + GtkWidget* fake_label_; // A list of all GtkChromeButton instances. We hold on to these to notify // them of theme changes. -- cgit v1.1