From 734d3866b6d6bb8c4c7f5fdcea8b04c2ecdf1816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Wed, 20 Feb 2013 12:34:59 +0100 Subject: [PATCH] [Ide] Fixed color calculation in AddLight. For some colors the other hsl class seems not to work correctly. --- .../core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs index c1ca1847530..ac4e617129d 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/GtkUtil.cs @@ -57,14 +57,14 @@ public static Gdk.Color ToGdkColor (this Cairo.Color color) /// public static Gdk.Color AddLight (this Gdk.Color color, double lightAmount) { - HslColor c = color; + Mono.TextEditor.HslColor c = color; c.L += lightAmount; return c; } public static Cairo.Color AddLight (this Cairo.Color color, double lightAmount) { - HslColor c = color; + Mono.TextEditor.HslColor c = color; c.L += lightAmount; return c; }