Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
[Ide] Fixed color calculation in AddLight.
Browse files Browse the repository at this point in the history
For some colors the other hsl class seems not to work correctly.
  • Loading branch information
mkrueger committed Feb 20, 2013
1 parent 5d09b19 commit 734d386
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -57,14 +57,14 @@ public static Gdk.Color ToGdkColor (this Cairo.Color color)
/// </param>
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;
}
Expand Down

0 comments on commit 734d386

Please sign in to comment.