From 27a85f2d4e9987ac1809199e280e17a36d68c783 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Sun, 4 Mar 2018 11:28:09 +0100 Subject: crowIde wip, docker wip, stack remove child debug --- src/GraphicObjects/ColorPicker.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/GraphicObjects/ColorPicker.cs') diff --git a/src/GraphicObjects/ColorPicker.cs b/src/GraphicObjects/ColorPicker.cs index 3a5ec23f..ee0d31da 100644 --- a/src/GraphicObjects/ColorPicker.cs +++ b/src/GraphicObjects/ColorPicker.cs @@ -165,7 +165,11 @@ namespace Crow NotifyValueChanged ("SelectedColorName", n); else NotifyValueChanged ("SelectedColorName", "-"); - NotifyValueChanged ("HexColor", ((int)R).ToString ("X2") + ((int)G).ToString ("X2") + ((int)B).ToString ("X2") + ((int)A).ToString ("X2")); + NotifyValueChanged ("HexColor", + ((int)Math.Round(R)).ToString ("X2") + + ((int)Math.Round(G)).ToString ("X2") + + ((int)Math.Round(B)).ToString ("X2") + + ((int)Math.Round(A)).ToString ("X2")); } void notifyRGBAHasChanged(){ NotifyValueChanged ("R", R); -- cgit v1.3.1-4-g156e