From 00f1ae0a1d1118445ad4fe6b5dd45479bc3aebf6 Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Fri, 12 Dec 2014 12:41:05 -0800 Subject: [PATCH] Restored older behavior for lighter color, should fix the regression. --- components/gfx/paint_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/gfx/paint_context.rs b/components/gfx/paint_context.rs index 6e08dce0445..23d54fdf1cb 100644 --- a/components/gfx/paint_context.rs +++ b/components/gfx/paint_context.rs @@ -604,7 +604,7 @@ impl<'a> PaintContext<'a> { if color.r != 0.0 || color.g != 0.0 || color.b != 0.0 { darker_color = self.scale_color(color, if is_groove { 1.0/3.0 } else { 2.0/3.0 }); - lighter_color = self.scale_color(color, if is_groove { 1.5/3.0 } else { 2.5/3.0 }); + lighter_color = color; } else { // You can't scale black color (i.e. 'scaled = 0 * scale', equals black). darker_color = Color::new(0.3, 0.3, 0.3, color.a);