Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: chrome/app/chrome_dll_main.cc

Issue 49035: Linux UI theming:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/app/chrome_dll_main.cc
===================================================================
--- chrome/app/chrome_dll_main.cc (revision 12503)
+++ chrome/app/chrome_dll_main.cc (working copy)
@@ -393,6 +393,10 @@
#endif
} else if (process_type.empty()) {
#if defined(OS_LINUX)
+ // Disable user theming.
+ gchar* default_gtkrc_files[] = { NULL };
+ gtk_rc_set_default_files(default_gtkrc_files);
+
// gtk_init() can change |argc| and |argv|, but nobody else uses them.
gtk_init(&argc, const_cast<char***>(&argv));
// Register GTK assertions to go through our logging system.
@@ -404,6 +408,12 @@
G_LOG_LEVEL_WARNING),
GtkFatalLogHandler,
NULL);
+
+ // This theme is chosen rather abritrarily. We set many colors ourselves,
+ // so we need to set a light theme or some of the colors will clash.
+ g_object_set(gtk_settings_get_default(),
+ "gtk-theme-name", "Mist",
+ NULL);
#endif
ScopedOleInitializer ole_initializer;

Powered by Google App Engine
This is Rietveld 408576698