diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 23:24:14 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-25 23:24:14 +0000 |
commit | 8bfb33faadbe94daae312fc6b9ed83135946d70c (patch) | |
tree | 90ab4cbd6dc5d03b361a8f7eb72461cf8fe9a688 /chrome/app/chrome_dll_main.cc | |
parent | f21a884408531b243047e62a7f000013abbd42f1 (diff) | |
download | chromium_src-8bfb33faadbe94daae312fc6b9ed83135946d70c.zip chromium_src-8bfb33faadbe94daae312fc6b9ed83135946d70c.tar.gz chromium_src-8bfb33faadbe94daae312fc6b9ed83135946d70c.tar.bz2 |
Linux UI theming:
- Improve appearance of menus by setting background to white (matching windows and fitting better with the overall appearance).
- Disable user theming of native widgets: since our widgets are a hodge-podge of native and custom-drawn, there's no way we can support user theming. Eventually users will be able to choose a theme for chromium; until then make everything look like chrome.
Review URL: http://codereview.chromium.org/49035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12516 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_dll_main.cc')
-rw-r--r-- | chrome/app/chrome_dll_main.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index b41e54e..82539ef 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -393,6 +393,10 @@ int ChromeMain(int argc, const char** argv) { #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 @@ int ChromeMain(int argc, const char** argv) { 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; |