From e9dccf82aba7acb6660537566bc91c8f0fbf7855 Mon Sep 17 00:00:00 2001
From: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
Date: Tue, 22 Feb 2022 09:28:05 +0100
Subject: [PATCH] [ColorPicker] Unify HEX color to lower case (#16492)
---
.../ColorPickerUI/Helpers/ColorRepresentationHelper.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs
index 1d9b45216b..8ed8eea6d0 100644
--- a/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs
+++ b/src/modules/colorPicker/ColorPickerUI/Helpers/ColorRepresentationHelper.cs
@@ -79,9 +79,9 @@ namespace ColorPicker.Helpers
/// The see cref="Color"/> for the hexadecimal presentation
/// A hexadecimal representation of a RGB color
private static string ColorToHex(Color color)
- => $"{color.R.ToString("X2", CultureInfo.InvariantCulture)}"
- + $"{color.G.ToString("X2", CultureInfo.InvariantCulture)}"
- + $"{color.B.ToString("X2", CultureInfo.InvariantCulture)}";
+ => $"{color.R.ToString("x2", CultureInfo.InvariantCulture)}"
+ + $"{color.G.ToString("x2", CultureInfo.InvariantCulture)}"
+ + $"{color.B.ToString("x2", CultureInfo.InvariantCulture)}";
///
/// Return a representation of a HSB color