summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 18:43:28 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 18:43:28 +0000
commitc7e082e2c8b24f56089b7b9fc465785dabae9ab1 (patch)
tree2c3a5c0fabd1a33283cf9d561c411c728b82ffb0 /chrome/common/gtk_util.cc
parentc0e271526431ce0ea45f8a2fb47d19f6ca12858a (diff)
downloadchromium_src-c7e082e2c8b24f56089b7b9fc465785dabae9ab1.zip
chromium_src-c7e082e2c8b24f56089b7b9fc465785dabae9ab1.tar.gz
chromium_src-c7e082e2c8b24f56089b7b9fc465785dabae9ab1.tar.bz2
GTK Themes: Theme labels in LocationBarViewGtk.
Labels in LocationBarViewGtk should be black even when a dark GTK theme is used when we're not in GTK theme mode. Likewise, when we're using a GTK theme, we should have the background and border color of the "Search X for:" box use colors from the theme instead of having hard coded ones. Review URL: http://codereview.chromium.org/159798 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.cc')
-rw-r--r--chrome/common/gtk_util.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.cc b/chrome/common/gtk_util.cc
index 6eb67007..39b9167 100644
--- a/chrome/common/gtk_util.cc
+++ b/chrome/common/gtk_util.cc
@@ -417,4 +417,11 @@ GtkWidget* AddButtonToDialog(GtkWidget* dialog, const gchar* text,
return button;
}
+void SetLabelColor(GtkWidget* label, const GdkColor* color) {
+ gtk_widget_modify_fg(label, GTK_STATE_NORMAL, color);
+ gtk_widget_modify_fg(label, GTK_STATE_ACTIVE, color);
+ gtk_widget_modify_fg(label, GTK_STATE_PRELIGHT, color);
+ gtk_widget_modify_fg(label, GTK_STATE_INSENSITIVE, color);
+}
+
} // namespace gtk_util