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

Unified Diff: chrome/renderer/render_view.cc

Issue 400027: On Linux, pick the color of the slider's thumbpart from the GTK theme.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 34028)
+++ chrome/renderer/render_view.cc (working copy)
@@ -3210,6 +3210,12 @@
#if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
WebColorName name = WebKit::WebColorWebkitFocusRingColor;
WebKit::setNamedColors(&name, &renderer_prefs.focus_ring_color, 1);
+
+ if (webview())
+ webview()->setScrollbarColors(
+ renderer_prefs.thumb_inactive_color,
+ renderer_prefs.thumb_active_color,
+ renderer_prefs.track_color);
#endif
}
« no previous file with comments | « chrome/common/renderer_preferences.h ('k') | third_party/WebKit/WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698