Skip to content

Commit

Permalink
Fixed missing "#" in front of HEX colors (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Jan 14, 2024
1 parent e86c8c0 commit a5ab8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ColorPicker/Classes/ColorInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public ColorInfo(RGB rgb)
public override string ToString()
{
return $"{Properties.Resources.RGB}: {RGB.R};{RGB.G};{RGB.B}\n" +
$"{Properties.Resources.HEX}: {HEX.Value}\n" +
$"{Properties.Resources.HEX}: {(HEX.Value.StartsWith("#") ? "" : "#")}{HEX.Value}\n" +
$"{Properties.Resources.HSV}: {HSV.H},{HSV.S},{HSV.V}\n" +
$"{Properties.Resources.HSL}: {HSL.H},{HSL.S},{HSL.L}\n" +
$"{Properties.Resources.CMYK}: {CMYK.C},{CMYK.M},{CMYK.Y},{CMYK.K}\n" +
Expand Down

0 comments on commit a5ab8b7

Please sign in to comment.