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

Unified Diff: gfx/native_theme_linux.cc

Issue 3697003: Make drawing consistent with webkit wrt default colors and effects (Closed)
Patch Set: bad indent Created 10 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gfx/native_theme_linux.cc
diff --git a/gfx/native_theme_linux.cc b/gfx/native_theme_linux.cc
index d23cac4c1e39148e92cfd7fb84b8eae1894837b3..4768f19426681addffe08755b13e50654f8765d0 100644
--- a/gfx/native_theme_linux.cc
+++ b/gfx/native_theme_linux.cc
@@ -12,9 +12,9 @@ namespace gfx {
unsigned int NativeThemeLinux::button_length_ = 14;
unsigned int NativeThemeLinux::scrollbar_width_ = 15;
-unsigned int NativeThemeLinux::thumb_inactive_color_ = 0xf0ebe5;
-unsigned int NativeThemeLinux::thumb_active_color_ = 0xfaf8f5;
-unsigned int NativeThemeLinux::track_color_ = 0xe3ddd8;
+unsigned int NativeThemeLinux::thumb_inactive_color_ = 0xeaeaea;
+unsigned int NativeThemeLinux::thumb_active_color_ = 0xf4f4f4;
+unsigned int NativeThemeLinux::track_color_ = 0xd3d3d3;
#if !defined(OS_CHROMEOS)
// Chromeos has a different look.
@@ -379,7 +379,7 @@ SkColor NativeThemeLinux::OutlineColor(SkScalar* hsv1, SkScalar* hsv2) const {
//
// The following code has been tested to look OK with all of the
// default GTK themes.
- SkScalar min_diff = Clamp((hsv1[1] + hsv2[1]) * 1.2, 0.2, 0.5);
+ SkScalar min_diff = Clamp((hsv1[1] + hsv2[1]) * 1.2, 0.28, 0.5);
SkScalar diff = Clamp(fabs(hsv1[2] - hsv2[2]) / 2, min_diff, 0.5);
if (hsv1[2] + hsv2[2] > 1.0)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698