summaryrefslogtreecommitdiffstats
path: root/chrome/common/platform_util_linux.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 20:11:39 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 20:11:39 +0000
commitefba8d707b56c019f6d1d13a22285d0a39850fa4 (patch)
tree217f2161c2b9d3674d445500f4171f9d4ffe6ccd /chrome/common/platform_util_linux.cc
parent5cd4d0d559ea23eb56604bae8de670e2c663c1f7 (diff)
downloadchromium_src-efba8d707b56c019f6d1d13a22285d0a39850fa4.zip
chromium_src-efba8d707b56c019f6d1d13a22285d0a39850fa4.tar.gz
chromium_src-efba8d707b56c019f6d1d13a22285d0a39850fa4.tar.bz2
linux: theme scrollbars from GTK theme
Pick the color of the slider's thumbpart and rail from the GTK theme. We cannot match the exact visual appearance of the GTK theme, as rendering engines can make arbitrary changes to the actual visual appearance. But by sampling a representative set of pixels, we ensure that we will at least match the general color scheme. BUG=10949 patch by <markus [at] chromium> original review: http://codereview.chromium.org/400027/show Review URL: http://codereview.chromium.org/466080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34183 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/platform_util_linux.cc')
-rw-r--r--chrome/common/platform_util_linux.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/chrome/common/platform_util_linux.cc b/chrome/common/platform_util_linux.cc
index 021d6a1..b7853c5 100644
--- a/chrome/common/platform_util_linux.cc
+++ b/chrome/common/platform_util_linux.cc
@@ -8,8 +8,8 @@
#include "base/file_util.h"
#include "base/process_util.h"
-#include "base/singleton.h"
#include "base/string_util.h"
+#include "chrome/browser/gtk/gtk_theme_provider.h"
#include "chrome/common/gtk_util.h"
#include "chrome/common/process_watcher.h"
#include "googleurl/src/gurl.h"
@@ -88,14 +88,4 @@ void SimpleErrorBox(gfx::NativeWindow parent,
gtk_widget_show_all(dialog);
}
-RendererPreferences GetInitedRendererPreferences() {
- RendererPreferences* prefs = Singleton<RendererPreferences>::get();
- static bool inited = false;
- if (!inited) {
- gtk_util::InitRendererPrefsFromGtkSettings(prefs);
- inited = true;
- }
- return *prefs;
-}
-
} // namespace platform_util